problem with sessions

Problems with the Windows version of XAMPP, questions, comments, and anything related.

problem with sessions

Postby VEINTYUNICO » 30. November 2008 05:54

i got this lines to start a session in my web, the rest of the pages must check that the session is started.

session_start();
$_SESSION["user"] = $file["ClientId"];
$_SESSION["logged"] = TRUE;

in the other pages, y wrote this to check if the session is started
but nothing happend, it doesn't show the messages.

if ($_SESSION["logged"])
echo "SESSION STARTED";


but if i write this
if (!$_SESSION["logged"] )
echo "NO SESSION SARTED";

it shows the message, there is something that i must change in php.ini?
I'm using XAMPP on windows XP SP3
VEINTYUNICO
 
Posts: 28
Joined: 27. September 2008 11:57

Postby Wiedmann » 30. November 2008 10:44

You must have "session_start()" in every file.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby VEINTYUNICO » 30. November 2008 15:25

ahhh jajajaj..yes you're right! what i was thinking! jajajaja.
I'm sorry...it was 4 am...i don't think in that hours
VEINTYUNICO
 
Posts: 28
Joined: 27. September 2008 11:57


Return to XAMPP for Windows

Who is online

Users browsing this forum: dogmatic and 40 guests