Date: 11/09/99
- Next message: Philip Strnad: "Re: [PHPLIB] Retaining sessionid through header()?"
- Previous message: Charles P. Wright: "[PHPLIB] active_sessions"
- Next in thread: Philip Strnad: "Re: [PHPLIB] Retaining sessionid through header()?"
- Reply: Philip Strnad: "Re: [PHPLIB] Retaining sessionid through header()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
After Massimiliano's fix this afternoon I tried all this funky stuff in more
detail and stumbled on a problem. I have a logout.php3 script that checks
for perm <> nobody. If that's not the case then a redirect is sent to the
browser (e.g. back to the main page) via a call to Header:
<?php
page_open(array("sess" => "Example_Session", "auth" =>
"Example_Default_Auth", "perm" => "Example_Perm", "user" =>
"Example_User"));
$user->register("u");
$sess->register("s");
if ($auth->auth["uid"] == "nobody")
{
Header("Location: http://some.server.com");
exit;
}
$auth->logout();
page_close();
Header("Location: http://some.server.com");
exit;
My question is how can I retain the sessionid when throwing the browser back
to the main or originating page via header()?
Any pointers appreciated.
Thanks,
Patrick
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Philip Strnad: "Re: [PHPLIB] Retaining sessionid through header()?"
- Previous message: Charles P. Wright: "[PHPLIB] active_sessions"
- Next in thread: Philip Strnad: "Re: [PHPLIB] Retaining sessionid through header()?"
- Reply: Philip Strnad: "Re: [PHPLIB] Retaining sessionid through header()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

