You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Hans de Groot <ha...@interspective.nl> on 2000/09/14 11:25:41 UTC
Frames and session (problems)
Hi,
I am using embperl 1.3.5b and Apache::Session 1.52
Before I could not get sessions to work at all but starting from this combination it worked fine, that is, until I stared using frames.
I have a frameset calling 2 normal html pages and 1 embperl page. (hello.html) The framename is main_content
This hello.html includes another embperl page headers.html which checks if a user has logged in.
If the user is not logged in I redirect him to the login page.
$http_headers_out{'Location'} = "/login.html","main_content"; (I am not sure if the ,"main_content" has any function but I tried it without first and it makes no difference)
(if I put a link href="/login.html" the same happens)
The nasty thing is that this page suddenly has a different _session_id and when reading the HTTP_COOKIE there is no EMBPERL_UID set the first time I access this login.
I also get double cookie entries after I have visited to loginpage and go back to the first page (hello.html)
HTTP_COOKIE = EMBPERL_UID=84a7d136137c396b3add370fde0f05db; EMBPERL_UID=6c0698003d81e370253e5e2f5d6a57f4
Which seems strange?
Is there any solution to this problem?
I get the impression that Embperl or Apache:Session sees the redirect/link as a different browser?
Help?
Regards
Hans de Groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
Re: Frames and session (problems)
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
>
> $http_headers_out{'Location'} = "/login.html","main_content";
"main_content" has no effect. You cannot pass the target in a redirection.
> I get the impression that Embperl or Apache:Session sees the redirect/link
as a different browser?
Cookies are only send back by the browser to the same path or paths below.
To change this you have to set the cookie path:
PerlSetEnv EMBPERL_COOKIE_PATH /
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------