Boomba Posted December 6, 2007 Share Posted December 6, 2007 Hi, I am fairly new to Zend Framework and not that strong of a php programmer but I have been enjoying developing under Zend Framework for the past few weeks and I am currently stuck on a simple problem which i think is strictly php related. On my website, I have a login form on every page. I have setup zend_auth properly and it works. But when a user logs in I want them to be able to return to the page they were currently on (or even better, never leave the page). what is the proper way to go about doing that? thank you in advance, Boomba Link to comment https://forums.phpfreaks.com/topic/80526-login-on-any-page/ Share on other sites More sharing options...
DyslexicDog Posted December 6, 2007 Share Posted December 6, 2007 I don't use zend framework but when I had a similar issue I created a post variable in the login form and set it to phpself. Then the logon page returns the user to the calling page with a meta refresh tag. Link to comment https://forums.phpfreaks.com/topic/80526-login-on-any-page/#findComment-408270 Share on other sites More sharing options...
ikmyer Posted December 6, 2007 Share Posted December 6, 2007 I would suggest leaving just the login form on each page and have that post to login.php ( or the login script ). You could then use $_SERVER['HTTP_REFERER'] to find out what page they came from and send them back there after the login is successful. Link to comment https://forums.phpfreaks.com/topic/80526-login-on-any-page/#findComment-408271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.