Re: still sessions
| From: | Iggy | Date: | Fri, 04 Apr 2003 16:21:06 +0000 |
| Subject: | Re: still sessions | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19308@lists.php.net to get a copy of this message | ||
I have done this million times, but it doesn't work.
I declare the session variables like you said it, but the moment I go on the
next page a new session is started instead of retrieving the old one.
I don't know if there is something in the php.ini file that I still need to
set, but I am getting frustrated. The way you mentioned works fine if you
have cookies enabled ( I mean if this is set in php.ini to 1's, but as you
see I have both of those disabled)
; Whether to use cookies.
session.use_cookies = 0
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 0
But for reliability reason I don't want to use cookies whatsoever.
"Charles P. Killmer" <charlesk@netgaintechnology.com> wrote in message
news:B141BE87473AA64FB24370C43CEA54BD29F832@ngexbe1.my-netgain.com...
Set session values like this
session_start();
$_SESSION["username"] = "sjohnson";
Get session values like this
session_start();
echo $_SESSION["username"];
The $_SESSION MUST be uppercase.
Charles Killmer
-----Original Message-----
From: Iggy [mailto:ifran@winegard.com]
Sent: Friday, April 04, 2003 10:05 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] still sessions
ok I have a very simply question to which I have not found a good answer
yet.
I have disabled cookie based sessions, i.e I pass the session Id through
the URL. How do I access the variables and their data that are related
to that session ID on subsequent pages?
Thanx
Iggy
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php