Reply to Re: Aren't session variable preserved using "Header('Location: xxx')"?

Your name:

Reply:


Posted by lwoods on 01/18/06 20:54

First, I really enjoy working with PHP so I don't want to get something
started, but I also work with ASP and there is no such thing as "turning on
and off" session support. It's just there! The only problem that you run
into is if someone has cookies turned off...but I live with that.

Anyway, I'll remember to put "session_start()" at the top of each page...and
before any headers...which I also discovered the hard way.

Thanks to all...

Larry

>> Not really. You call session_start() on those pages which require
>> session support, and don't on those which don't need sessions. Saves a
>> little unnecessary processing time.
>
> Not to mention the default session handler will only allow two scripts to
> use the same session at the same time - if sessions were "always on", then
> you'd get timeouts all over the place.
>
>> Maybe session_connect() might be a better name? :-)
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex@attglobal.net
>> ==================
>
>

[Back to original 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

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