Re: Php sessions
On Fri, 29 Apr 2005 00:51:25 +0000, Jeff wrote:
> Hi gang,
>
> This is probably a silly question... Once I open a PHP session using
> session_start() do I have to call session_start() on EVERY subsequent page,
> or only on the pages I wish to use session info?
>
> Hope that's clear.
>
> Thanks!
> Jeff
Good question. Why don't you try it? Make a simple set of scripts which
produce some html. Have the first, second and fourth call session start,
have the first post a form, have the second accept the form input and put
it in a session variable, and then print html that calls the third script
(no session), and have the third script print html that calls the last
script, and have that script try to print out the value of the session
variable.
- steve
.
Relevant Pages
- Re: stupid IE7 question
... closer look on session handling. ... Obscure methods like hiding an URI always ... rewrites itself to another script of yours with the session key as the ... I am currently testing a proprietary secure web based ... (Pen-Test) - Re: (Sloppy correction) Re: session management with database: optimal parameters in php.ini
... looking then another script read N! ... make it so simple that there are obviously no deficiencies, ... but I never used their db session management ... I avoid MySQL since I consider it an inferior db. ... (alt.php) - IndiaTimes.com - Email - Session hijacking and Inbox Blocking
... IndiaTimes.com - Email - Session hijacking and Inbox Blocking ... The script allows user to embed HTML and also javascript in the mail. ... (Bugtraq) - Re: Not able to establish session--Help
... when i run it on my local webserver it ... > never create session means it validate the user but still displays u ... > But when i run this script on my website it runs successfully.. ... > BuntyIndia ... (alt.php) - Re: Managing concurrency due to multiple submits
... PHP script which would not get aborted by the second click do to my ... This will mean I have to write out the session ... Which will never be true with the default file session handler because sessions are single threaded. ... So the second script will wait for the first one's session to end. ... (comp.lang.php) |
|