You are here: Re: Unusual Session Behaviour « All PHP « IT news, forums, messages
Re: Unusual Session Behaviour

Posted by Norman Peelman on 03/03/06 04:05

"Jim Michaels" <NOSPAMFORjmichae3@yahoo.com> wrote in message
news:zbGdnduKavtjxJrZRVn-uA@comcast.com...
>
> "Norman Peelman" <npeelman@cfl.rr.com> wrote in message
> news:JJOMf.47101$Fw6.14262@tornado.tampabay.rr.com...
> > "John Howie" <johnhowie85@gmail.com> wrote in message
> > news:1141055279.339488.125350@v46g2000cwv.googlegroups.com...
> >> 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
> >>
> >
> > John,
> >
> > Just out of curiosity, when you changed servers did you alter any
links?
> > PHP is usually set up to use both cookies and url based session
handling.
> > url based kicks in when cookies are not enabled but only works with
fully
> > qualified links:
> >
> > 1) <a href='http://www.yourserver.com/link.htm'>Link</a> <- will have
the
> > 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
>
> funny, it seemed to work in my php file with relative link. or are you
> saying the behaviour becomes flaky?
>
> >
> > and make sure that the 'temp' directory is set in php.ini so that PHP
> > knows
> > where to store the sessions...
> >
> > Norm
> >
> >
>

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация