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 ?

 

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.