Re: [PHP] Sessions in Frames...confused

2004-12-06 Thread Richard Lynch
Ryan A wrote:
> Hey,
>
>>Do I have to start a session in index.php which is calling the sideFrame
> and
>>mainFrame or just in mainFrame or just in sideFrame or in all?? AGH!
>>going nuts!
>
> /*
> As far as I know there is no harm in calling session_start() in all your
> Iframes and Frames. According to theory a new session will only be
> started if one has not been started already. However there have been
> several discussions on this list in the past where this behaviour was
> not observed, and you may want to look these up in the archives.
> */

In theory, if you call session_start in the main page, all the pages in
the frameset will be okay.

In practice, I'm not sure anybody will guarantee that all browsers will
have the Cookie set up BEFORE it starts getting the individual pages
within the frames of the frameset...

You'd think they would...

Frames mostly just confuse users.   Get rid of them.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions in Frames...confused

2004-12-06 Thread Brent Baisley
PHP, and it's sessions, knows absolutely nothing about frames. A frame 
is just another page, the browser just happens to display it inside of 
another page. From a session standpoint, you should treat each frame as 
an independent page.

On Dec 5, 2004, at 9:12 PM, Ryan A wrote:
Hi,
Reading the different articles on phpbuilder/devshed/phpfreaks etc has 
left
me a bit confused..
will start from the beginning so you guys(and girls) can give me some 
advise
and show me the right path again ;-)

I have a normal user/pass login screen, after which I start a session 
for
the client and the client should be presented with the "control panel" 
for
his software.

The control panel is in frames and is split in 2 (sideFrame, mainFrame)
sideFrame  is for the navigation.
Do I have to start a session in index.php which is calling the 
sideFrame and
mainFrame or just in mainFrame or just in sideFrame or in all?? 
AGH!
going nuts!

The idea is if the session expires he should be present with the login 
page
again...I am not doing anything special or complicated, just need to 
make
sure he is who he says he is and give him access as long as his 
sesssion is
good.

Thanks,
Ryan

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.5 - Release Date: 12/3/2004
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions in Frames...confused

2004-12-06 Thread Ryan A
Hey,

>Do I have to start a session in index.php which is calling the sideFrame
and
>mainFrame or just in mainFrame or just in sideFrame or in all?? AGH!
>going nuts!

/*
As far as I know there is no harm in calling session_start() in all your
Iframes and Frames. According to theory a new session will only be
started if one has not been started already. However there have been
several discussions on this list in the past where this behaviour was
not observed, and you may want to look these up in the archives.
*/
Thanks,will do.
Cheers,
Ryan



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.5 - Release Date: 12/3/2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions in Frames...confused

2004-12-05 Thread Raditha Dissanayake
Ryan A wrote:
Hi,
Reading the different articles on phpbuilder/devshed/phpfreaks etc has left
me a bit confused..
will start from the beginning so you guys(and girls) can give me some advise
and show me the right path again ;-)
I have a normal user/pass login screen, after which I start a session for
the client and the client should be presented with the "control panel" for
his software.
The control panel is in frames and is split in 2 (sideFrame, mainFrame)
sideFrame  is for the navigation.
Do I have to start a session in index.php which is calling the sideFrame and
mainFrame or just in mainFrame or just in sideFrame or in all?? AGH!
going nuts!
 

As far as I know there is no harm in calling session_start() in all your 
Iframes and Frames. According to theory a new session will only be 
started if one has not been started already. However there have been 
several discussions on this list in the past where this behaviour was 
not observed, and you may want to look these up in the archives.

--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Sessions in Frames...confused

2004-12-05 Thread Ryan A
Hi,
Reading the different articles on phpbuilder/devshed/phpfreaks etc has left
me a bit confused..
will start from the beginning so you guys(and girls) can give me some advise
and show me the right path again ;-)

I have a normal user/pass login screen, after which I start a session for
the client and the client should be presented with the "control panel" for
his software.

The control panel is in frames and is split in 2 (sideFrame, mainFrame)
sideFrame  is for the navigation.

Do I have to start a session in index.php which is calling the sideFrame and
mainFrame or just in mainFrame or just in sideFrame or in all?? AGH!
going nuts!

The idea is if the session expires he should be present with the login page
again...I am not doing anything special or complicated, just need to make
sure he is who he says he is and give him access as long as his sesssion is
good.

Thanks,
Ryan



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.5 - Release Date: 12/3/2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php