Absolute Newb needs help.... Redirecting a page in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rob_Beard
Forum Newbie
Posts: 23
Joined: Sat Oct 12, 2002 11:58 am

Absolute Newb needs help.... Redirecting a page in PHP

Post by Rob_Beard »

Hey all,


I'm a total newb to PHP, I'm waiting for my book to arrive. but i've been building a PHP Login script, and need to redirect to another page after login. I don't want to include it, i want to refresh so the next page URL appears...and if I do this, will I keep my session, or will it be lost?

Thanks

Rob
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

header('Location: http://were.you/want/them');
http://www.zend.com/zend/tut/session.php
http://www.zend.com/zend/tut/feedback.php
viewtopic.php?t=1157
  • session will stay intact, if
  • you use cookies (enabled by default)
  • stay in the same 'realm'
Post Reply