New on PHP, need help with sessions
| From: | Victor Spång Arthursson | Date: | Tue, 03 Jul 2001 06:19:13 +0000 |
| Subject: | New on PHP, need help with sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55931@lists.php.net to get a copy of this message | ||
Hi!
I'm converting from ASP/VBScript, and need to know how to declare a session variable.
In VBScript I just type in:
<%
session("any") = "victor"
%>
Then I can print that variable on any page on the same webpage using:
<%
response.write session("any")
%>
as long as I don't close the browser or the variable times out.
Question: How do I achieve the same thing in PHP..?
Thanks in advance,
Sincerely Victor
PS Using PHP 4 on Mac OS X DS