PHP Forums Archive

cannot use login.php within iframe

Tags: access_user, iframe

thilofranz posted on 2008-03-07 14:41:13 #

Hi,

I am trying to put login.php into a html-page with an iframe. I'd like to exit the iframe if the login-process is done e.g. by "target=_parent". Unfortunately I don't know how to change the sourcecode, because the other pages will not executed by "a href" but by "header(Location)". Can anyone help me?

Kind regards

Thilo

Comments / discussions

Olaf posted on 2008-03-07 15:29:50 #

thats right, the Iframe has it's own session.

Since you're able to use PHP/cURL, you don't to use an Iframe ;)

thilofranz posted on 2008-03-07 16:51:11 #

Hi Olaf,

thanks for yout fast answer. But how shall I integrate your classes in my pages?

Kind Regards

Thilo

Olaf posted on 2008-03-07 19:58:10 #

check the example files, you need to include some php in each page you want to protect

ciombenu posted on 2008-07-08 19:36:48 #

Removed (please post a clear question in a new thread)

ciombenu posted on 2008-07-08 19:37:46 #

Hi Olaf,

I am trying to install Access_user Class but y have a error

Warning: Cannot modify header information - headers already sent by (output started at /home/rdra4602/public_html/classes/db.php:6) in /home/rdra4602/public_html/classes/access_user/access_user_class.php on line 203, and y don.t now what y have to include in every page to protect , sorry i don.t speak very well
Exist any tutorial???????