Which PHP session settings are incorrect here?

Posted by Greg McNulty on Stack Overflow See other posts from Stack Overflow or by Greg McNulty
Published on 2012-06-17T03:11:04Z Indexed on 2012/06/17 3:16 UTC
Read the original article Hit count: 233

Filed under:
|
|
|
|

enter image description here

I see the savepath has no value but does it default to something? Are the other values OK? I have access to the server and PHP files but how and what do I change?

The specific issue -

On page 1:

session_start();
$_SESSION['uType']=$row['usertype']; //save user type to session
print_r($_SESSION); //Prints the user type successfully

On page 2:

session_start();
print_r($_SESSION); //BLANK??

Observed:

  • Page 1 displays the session data.
  • However, there are NO cookies created anywhere on the browser?
  • Page 1 does a require to display page 2.
  • Page 2 does not contain the session data.
  • Using FireFox as the target browser (looking at cookies with web developer add-in)

How do I get the session to work across all pages?

Thank You and yes I am a newbie at this.

© Stack Overflow or respective owner

Related posts about php

Related posts about web-development