Re: Session Problems with 4.3.2
| From: | Evan Nemerson | Date: | Tue, 22 Jul 2003 20:10:40 +0000 |
| Subject: | Re: Session Problems with 4.3.2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156314@lists.php.net to get a copy of this message | ||
Try appending <?php echo SID; ?> to the url (perhaps cookies are off in
browser)
If that doesn't work, try the example at php.net/session
On Tuesday 22 July 2003 11:49 am, you wrote:
> It echo No. Have no idea why its not set?
> Even tried using session_register with register_globals on
> but no luck either.
> Anyone have any idea what i'm doing wrong? I'm hoping its just
> a user error.
> Thanks in advance
>
>
>
> From: Evan Nemerson <evan@coeus-group.com>
>
> >To: "Joe Sheehan" <triswimjoe@hotmail.com>
> >CC: php-general@lists.php.net
> >Subject: Re: [PHP] Session Problems with 4.3.2
> >Date: Tue, 22 Jul 2003 10:01:03 -0700
> >
> >Were you planning on incrementing $_SESSION['count'] anywhere? If not, try
> >
> ><?php isset($_SESSION['count']) ? echo "Yes.\n" : echo
> >"No.\n"; ?>
> >
> >On Tuesday 22 July 2003 09:55 am, Joe Sheehan wrote:
> > > Just noticed my email was messed up because of the html. Sorry
> > > about that
> > >
> > > I've been using up until a day or so ago version 4.0.6.
> > > I'm moving everything now to 4.3.2 but
> > > having problems with sessions. I've tried a basic example
> > > but can't retrieve session values.
> > > Can anyone tell me what I'm doing wrong? I see the session file
> > > is created but can't retrieve its value. What is interesting
> > > is the script I go to in order to retrieve my value also created
> > > a file but it's empty. Thanks in advance.
> > >
> > > php example
> > >
> > > <?php
> > > $title="SESSION_TEST_SESSION_ONE";
> > > session_start();
> > > $_SESSION['count'] = 15;
> > >
> > > ?>
> > >
> > > //<head>
> > > //<title><? echo $title; ?></title>
> > > //<h3><? echo $count; ?></h3>
> > > //</head>
> > > //<body>
> > > //<? echo $_SESSION['count']; ?>
> > > //<? echo " "; ?>
> > > //<a href=session_next.php>session_next</a><br>
> > > //</body>
> > >
> > >
> > > *****************session_next.php
> > > #!/bin/php
> > >
> > > <?php
> > > $title="SESSION_NEXT";
> > > session_start();
> > > ?>
> > >
> > > //<head>
> > > //<title><? echo($title); ?></title>
> > > /</head>
> > > //<body>
> > > //<? echo " "; ?>
> > > //<h3><? echo $_SESSION['count']; ?></h3>
> > > //</body>
> > >
> > > _________________________________________________________________
> > > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> > > http://join.msn.com/?page=features/virus
> >
> >--
> >"Everything has a natural explanation. The moon is not a god but a great
> >rock
> >and the sun a hot rock."
> >
> >-Anaxagorus
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
--
"If one were to take the bible seriously one would go mad. But to take the
bible seriously, one must be already mad."
-Aleister Crowley