Welcome Guest, Not a member yet? Register   Sign In
Multitab browsing with codeigniter
#1

[eluser]Unknown[/eluser]
Hi

I have a problem with codeigniter session and multitab browsing. I set sessions with codeigniter session library. Everything is fine untill i open a new tab in the same browser. Unfortunately new session replaced with previous one and it makes sense. Because browser supports one session. How can i set sessions based on tabs? consider you have a products review site and you save product id in session. All results are shown based on this product id. But when you open two tabs, new tab's product id replaced with previous one. This is my problem.
Thanks in advance.
#2

[eluser]Nisha S.[/eluser]
It is not possible to set different sessions on different tab on the same opened browser instance unless the browser settings support it. What you can do is keeping the product id in the url segment. So when the product is opened in the new url
#3

[eluser]InsiteFX[/eluser]
You can store the tab settings in a cookie, if they are jQuery tabs then use the jQuery Cookie to store them.
Even if you set the cookie using jQuery you can still read it with CodeIgniter Cookie methods




Theme © iAndrew 2016 - Forum software by © MyBB