Date: 12/21/99
- Next message: Sascha Schumann: "Re: [PHPLIB] PHP4"
- Previous message: Florian Gnägi: "Re: [PHPLIB] Timezones"
- In reply to: Allen Lee: "[PHPLIB] frames + auth = ?"
- Next in thread: Martin Decker: "Re: AW: [PHPLIB] frames + auth = ?"
- Reply: Martin Decker: "Re: AW: [PHPLIB] frames + auth = ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Allen,
I'm using phplib in a "frames environment", and there are no unsolvable
problems.
The only thing you'll have to consider is that you have to do a page_open in
your *frameset* file, and specify the participating frame files of the
frameset by using $sess->purl(), so that the files of the different frames -
they will do a page_open() themselves - don't open up a new session (and
therefore force you to login to every one of 'em).
A sample "frameset.phtml" could look like this:
<?php page_open(array("sess" => "Example_Session", "auth" =>
"Example_Auth")); ?>
<html>
<frameset rows=100,*>
<frame name="top_frame" src="<?php $sess->purl("top.phtml") ?>">
<frame name="bottom_frame" src="<?php $sess->purl("bottom.phtml") ?>">
</frameset>
</html>
<?php page_close() ?>
With this approach the session id is carried on to every "child"...
You (can) have three (in the example) files doing a page_open():
-the frameset file (this will take you to the login if you use "auth")
-the participating frame files (they won't take you there, your session has
already been authenticated)
Danny Adair
Danny <email protected>
> -----Ursprüngliche Nachricht-----
> Von: phplib-owner <email protected>
> [mailto:phplib-owner <email protected>]Im Auftrag von Allen Lee
> Gesendet am: Dienstag, 21. Dezember 1999 17:45
> An: phplib <email protected>
> Betreff: [PHPLIB] frames + auth = ?
>
>
> Does anyone know if it is ok to use frames while you are using session
> management features?
>
> The different frames don't screw up your session, do they?
>
> Allen
> -
> 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.
>
-
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: Sascha Schumann: "Re: [PHPLIB] PHP4"
- Previous message: Florian Gnägi: "Re: [PHPLIB] Timezones"
- In reply to: Allen Lee: "[PHPLIB] frames + auth = ?"
- Next in thread: Martin Decker: "Re: AW: [PHPLIB] frames + auth = ?"
- Reply: Martin Decker: "Re: AW: [PHPLIB] frames + auth = ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

