Jump to content

I have not encountered this in my 6 years of PHP coding (SESSIONS)


2levelsabove

Recommended Posts

Perfectly working application.

 

All of a sudden sessions stop working.

 

If I am on page 1 and make a session like

 

session_start();

 

$_SESSION['jini']="yes!!!!!";

 

I can echo the value of session on same page.

 

 

When i Go to page 2

 

and type:

 

session_start();

 

echo $_SESSION['jini'];

 

 

nothing happens.

 

 

All of a sudden the sessions are not persisting from one page to the next.

 

 

 

any insights ?

 

 

Cookies disabled on the client? The client must accept the cookie with the session ID for the session to be rememebred from page to page. Check the cookies folder to see if it is even getting saved.

 

Or, is this problem persistent across many computer and browsers. What have you tried so far?

It is persistent across many different browsers and computers.

 

It just happened today. All my user authentication and stuff stopped working.

 

To the best of my knowledge no software or patches were installed on server.

 

 

The folder is created and i see cookies being saved etc

including PHPSESSID etc

 

 

OK so I moved all the files to another server that I own and cookies seem to work fine.

 

I will check with the hosting people tomorrow. Is there a certain setting I should be looking for in php.ini ?

 

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.