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

2004-12-06 Thread Peter Lauri
Do not use frames :) It creates problems for the searchengines.

/Peter


Ryan A [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
 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



[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
A little update, seems I was wrong about the session cookie being set
when the page is first access. The first time the page is accessed no
session cookie or /tmp file is generated. I think this may be because
the site that is loading my content in a frame is also generating a cookie.

Is that a probable cause for my problem? If yes (or) how can I get a
session to be started (using cookies) when my content is loaded into a
frame?

Thanks,

Jc

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



[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
After much head banging I found the answer. I had set my browser to only
allow cookies from the originating site to be set. (This prevent
banner ads from setting cookies).

Of course the first time my frame was loaded the browser was seeing it
as content not from the originating site and hence blocking the
session cookie from being set ... argh.

One more reason to hate frames :)

Jean-Christian Imbeault

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



Re: [PHP] Re: Sessions and frames

2003-08-27 Thread Marek Kilimajer
It has nothing to do with the other site. Browser makes a separate 
request for the frame content and you can set cookies without any 
problem. You should check if the cookie is realy set and if the cookie 
parameters are right (eg. in Mozilla's cookie manager).

Jean-Christian IMbeault wrote:

A little update, seems I was wrong about the session cookie being set
when the page is first access. The first time the page is accessed no
session cookie or /tmp file is generated. I think this may be because
the site that is loading my content in a frame is also generating a cookie.
Is that a probable cause for my problem? If yes (or) how can I get a
session to be started (using cookies) when my content is loaded into a
frame?
Thanks,

Jc

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