Re: Unusual Session Behaviour
"Jim Michaels" <NOSPAMFORjmich ae3@yahoo.com> wrote in message
news:zbGdnduKav tjxJrZRVn-uA@comcast.com. ..[color=blue]
>
> "Norman Peelman" <npeelman@cfl.r r.com> wrote in message
> news:JJOMf.4710 1$Fw6.14262@tor nado.tampabay.r r.com...[color=green]
> > "John Howie" <johnhowie85@gm ail.com> wrote in message
> > news:1141055279 .339488.125350@ v46g2000cwv.goo glegroups.com.. .[color=darkred]
> >> Problem solved! Or at least a workaround. Instead of using sessions I'm
> >> now using cookies on the client machine, since the data stored isn't
> >> confidential, or passwords.
> >>
> >> It seems to be working perfectly fine now, though I don't know what
> >> would happen if a user has disabled cookies. That's a huge relief,
> >> thank you all for your help with this matter, if anyone does work out
> >> what wasn't working with the sessions I'd be very interested to hear
> >> it, as I can include it in my write up.
> >>
> >> John
> >>[/color]
> >
> > John,
> >
> > Just out of curiosity, when you changed servers did you alter any[/color][/color]
links?[color=blue][color=green]
> > PHP is usually set up to use both cookies and url based session[/color][/color]
handling.[color=blue][color=green]
> > url based kicks in when cookies are not enabled but only works with[/color][/color]
fully[color=blue][color=green]
> > qualified links:
> >
> > 1) <a href='http://www.yourserver. com/link.htm'>Link</a> <- will have[/color][/color]
the[color=blue][color=green]
> > session id appended if cookies are disabled
> > 2) <a href='link.htm' >Link</a> <- will not work as PHP won't add the
> > session id to a short form link[/color]
>
> funny, it seemed to work in my php file with relative link. or are you
> saying the behaviour becomes flaky?
>[color=green]
> >
> > and make sure that the 'temp' directory is set in php.ini so that PHP
> > knows
> > where to store the sessions...
> >
> > Norm
> >
> >[/color]
>[/color]
I was basically just stating what is in the online manual and my own
experiences. Not exactly sure how sessions interact with 'header()' - you
may need to add the session id manually...
Norm
"Jim Michaels" <NOSPAMFORjmich ae3@yahoo.com> wrote in message
news:zbGdnduKav tjxJrZRVn-uA@comcast.com. ..[color=blue]
>
> "Norman Peelman" <npeelman@cfl.r r.com> wrote in message
> news:JJOMf.4710 1$Fw6.14262@tor nado.tampabay.r r.com...[color=green]
> > "John Howie" <johnhowie85@gm ail.com> wrote in message
> > news:1141055279 .339488.125350@ v46g2000cwv.goo glegroups.com.. .[color=darkred]
> >> Problem solved! Or at least a workaround. Instead of using sessions I'm
> >> now using cookies on the client machine, since the data stored isn't
> >> confidential, or passwords.
> >>
> >> It seems to be working perfectly fine now, though I don't know what
> >> would happen if a user has disabled cookies. That's a huge relief,
> >> thank you all for your help with this matter, if anyone does work out
> >> what wasn't working with the sessions I'd be very interested to hear
> >> it, as I can include it in my write up.
> >>
> >> John
> >>[/color]
> >
> > John,
> >
> > Just out of curiosity, when you changed servers did you alter any[/color][/color]
links?[color=blue][color=green]
> > PHP is usually set up to use both cookies and url based session[/color][/color]
handling.[color=blue][color=green]
> > url based kicks in when cookies are not enabled but only works with[/color][/color]
fully[color=blue][color=green]
> > qualified links:
> >
> > 1) <a href='http://www.yourserver. com/link.htm'>Link</a> <- will have[/color][/color]
the[color=blue][color=green]
> > session id appended if cookies are disabled
> > 2) <a href='link.htm' >Link</a> <- will not work as PHP won't add the
> > session id to a short form link[/color]
>
> funny, it seemed to work in my php file with relative link. or are you
> saying the behaviour becomes flaky?
>[color=green]
> >
> > and make sure that the 'temp' directory is set in php.ini so that PHP
> > knows
> > where to store the sessions...
> >
> > Norm
> >
> >[/color]
>[/color]
I was basically just stating what is in the online manual and my own
experiences. Not exactly sure how sessions interact with 'header()' - you
may need to add the session id manually...
Norm
Comment