The session ID is constantly changing on every page refresh or change.

im having session issues my sessions are not persistent because the session id is constantly changing every time i refresh or change the page.

I tried to add a dummy session (ze) after starting the session to prevent it, but the session id keeps changing, oddly enough it works fine and doesn't change on chrome, this problem only occurs with other browsers.

session_save_path () is writable, I tested with

if ( !is_writable(session_save_path()) ) {
   echo 'Session save path "'.session_save_path().'" is not writable!'; 
}

      

my server is not local and php version is 5.3.5

session_start();
$_SESSION["ze"] = "lalal";

      

+3
php session cookies session session-variables


source to share


No one has answered this question yet

See similar questions:

4
PHP session id changes on every request

or similar:

1074
How do servlets work? Creation, sessions, shared variables and multithreading
867
How do I end PHP session after 30 minutes?
415
Verify PHP Session is Already Started
3
Laravel's exact token changes on every update
1
Inconsistent session data from IE sessions - caching?
0
Using sessions to remember a user in a PHP form
0
PHP session incompatible on different computers?
0
Unwanted independent sessions for two separate pages
0
"session_start ()" generates a new session id instead of loading the available one
0
Godaddy php session not working



All Articles
Loading...
X
Show
Funny
Dev
Pics