Re: Sessions
| From: | firepages | Date: | Wed, 17 Apr 2002 17:06:03 +0000 |
| Subject: | Re: Sessions | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6663@lists.php.net to get a copy of this message | ||
if php was compiled with --enable-trans-sid then you dont need to add the
SID to the URL
run phpinfo() to confirm trans-sid is actually enabled in the php.ini (1 is
on)
(look for session.use_trans_sid)
Regards
Simon Wheeler
firepages
"Limbourg Arnaud" <arnaud.limbourg@cegetel.fr> wrote in message
news:40043BDD1EC9D211946400A024A6E1840AA9391A@cassandre.sfr.com...
> Hello,
>
> it is because the session id propagates through the use of cookies.
> Otherwise you have to do it by hand, either in the url or in a hidden
field.
>
> A way is to use the php constant SID and add it at the end of every url
like
>
> echo 'a href=file.php?' . SID
>
> then the id propagates ;)
>
> > Hi all,
> > this is my first posting to this list. I host a medium-sized
> > site for people working with a certain make of
> > microcontrollers called AVR.
> > The site is called www.AVRfreaks.net
> >
> > I have a question regarding sessions:
> > We just compiled a new apache installation with PHP into it.
> > I wanted to use transparent session handling so I used the
> > --trans-sid and --track-vars flags. I also run with
> > register_globals on.
> >
> > The problem is that this setup allows to propagate the
> > session_id even when I disable cookies on my computer; but I
> > cant seem to write something into the session files. When I
> > run with cookies allowed; this is fine. Then I can write all
> > the User's info into the session file.
> > So users not running with cookies, cannot log in...
> > I think it's a bit strange that it's just this writing that's
> > not possible. So I am left a little clueless here...
> >
> > Does anybody have an idea what this may be due to? And how
> > to solve it?
> > Please reply with any idea besides sticking my head in the
> > sand, shutting the server down etc... ;-)
> >
> > Best regards,
> >
> > Eivind
> >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >