• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.