Posted by CyberDog on 07/24/05 13:14
flintridgeparkenfarker vonkerschnauzerheiden wrote:
> I'm new to PHP and although it seems like a powerful construct, I'm getting
> very frustrated dealing with sessions. My results seem inconsistent.
>
> I'm simply trying to access the $_SESSION[] variables when I return to the
> page with the following code in it but they are always empty--I've tried
> moving/removing session_start() but nothing seems to work--the variables are
> empty when I return to this page:
cut
You don't need that cookie stuff, php does it automaticly...
all you need to do to use sessions is:
<?
sessin_start();
$_SESSION['mytest'] = "wee";
?>
page two:
<?
session_start();
echo $_SESSION['mytest'];
?>
Hope you get the point :)
--
Prvi hrvatski MMORPG:
http://omega17.net
Navigation:
[Reply to this message]
|