Session creates new session id on every page load |
[eluser]benharrison[/eluser]
base_url() works as expected. I have been using XAMPP lite for development, and a Dreamhost shared hosting plan (which I believe is Apache) for staging. Thanks for your help. I will look into the other possibilities further.
[eluser]PHPexpert[/eluser]
Would be possible for you to disable CodeIgniter session variable in the config file and instead use the native php sessions and see if you still have the same problem. Please let use know.
[eluser]WanWizard[/eluser]
Detecting where the problem is, so it can be solved, should be a 10 minute job. Not really the moment to rework the code just yet (my 2ct...).
[eluser]Mr-H[/eluser]
hi a had this probleme to, it seems that the session class creat each time you load the page "that containt a flash " a hashed md5 session_id, to prevent this in youre config.php look for $config['sess_match_ip'] = FALSE; and replace with: $config['sess_match_ip'] = TRUE; that all, hope it will help you... sorry my english
[eluser]Mr-H[/eluser]
another solution but is not allowed you to browse you website on all browser(google chrom, firefox,safari...) in phpmyadmin in the ci_session table creat a UNIQUE key for the ip_address
[eluser]Abdul Jamal[/eluser]
Please save this file system\application\libraries named "Session.php" now check Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
[eluser]Lockzi[/eluser]
I have the exact same problem as the people above. Database sessions. New database row for each page load. All config variables should be allright, gonna start the debugging now. I'll get back with results!
[eluser]Lockzi[/eluser]
Current settings in config.php Code: $config['base_url'] = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '').'://'.$_SERVER['HTTP_HOST']; Firefox webdeveloper add-on tells me no cookie for this website. I've tried setting match_ip as well as useragent to false, still no luck. New database row for each page refresh. This problem occurs on a server that is not local, so an external domain is used for access. (No localhost problems) When using the application/libraries/Session.php file I do get a cookie (according to webdeveloper), but nothing is stored in the database. The session data also works with the Native_session Class. Any ideas on how to proceed? Thanks, Lockzi
[eluser]WanWizard[/eluser]
Check with firebug or Live HTTP headers if the HTTP header of the request result contains a cookie, and if so, what it's definition is (domain and path ok, expiration time ok?). Also, remove the underscore from the cookie_name, some browsers don't like that.
[eluser]Lockzi[/eluser]
Here's the results... Removed the CI_Native session library, and deleteted the cookie belonging to that. Upon ran fresh (without any cookies belonging to this domain): Code: Date Thu, 14 Oct 2010 08:25:24 GMT You said to remove the undersocre in the cookie, where's that underscore? :S Also, http://subdomain.domain.se is the replacement of my corresponding real domain. |
Welcome Guest, Not a member yet? Register Sign In |