Welcome Guest, Not a member yet? Register   Sign In
Session getting destroyed
#2

[eluser]bretticus[/eluser]
Using parse_str to extract a $_GET variable from the URI shouldn't affect sessions in anyway that I can think of. Typically, sessions are affected by a useragent change (like toggling firebug on and off will destroy your CI session because the user agent changes.)

I've also noticed issues with AJAX destroying the session. If you google "CodeIgniter session AJAX" (or perhaps a better search query) you will find solutions for that problem.

However, I can't help wondering, you probably don't need to change anything in the config file for your method of getting $_GET because you are faking it Smile (it's not the real $_GET super global.) So unless it's changing the URI settings:

http://ellislab.com/codeigniter/user-gui...oting.html

I think you might try reversing the setting to use GET in the config (just in case.)

Can you...

1. Post your session settings from config.php here?
2. Try disabling whatever you enabled for GET in config.php (unless I'm wrong and you really do need it.)
3. Explain if you are using something that might change your user agent string or AJAX.


Messages In This Thread
Session getting destroyed - by El Forum - 11-18-2012, 05:11 PM
Session getting destroyed - by El Forum - 11-28-2012, 02:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB