Re: Frames and Sessions
| From: | jimmy elab | Date: | Wed, 14 Nov 2001 02:44:42 +0000 |
| Subject: | Re: Frames and Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74533@lists.php.net to get a copy of this message | ||
Michael Hall wrote:
> can't figure out how I'm going to maintain a session across the three
> seperate HTML files in the frameset.
You don't! PHP and your browser will do it for you. It doesn't matter
whether you're in frames or not. All that matters is the cookie that is
automagically generated by the session manager and is sent to the server
on each request.
You only need a call to session_start() in each file that relies on the
session variables, and a session.register('varname') for each var once
you've decided you want it being saved accross pages.