This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » Redirecting to the refering page: after successfully login
Redirecting to the refering page: after successfully login [message #57652] Sat, 02 August 2008 11:13 Go to next message
n_shukla2000
Messages: 32
Registered: February 2008
Member
Hello,

I tried to override the sfGuard signin method to redirect to the refering page
But it doesn't work.

suppose i am accessing following url

http://MYSITE/website_dev.php/help


Now ====================================

http://MYSITE/website_dev.php/other
|
http://MYSITE/website_dev.php/help
|
login
|
http://MYSITE/website_dev.php/other


I want to ==============================
http://MYSITE/website_dev.php/other
|
http://MYSITE/website_dev.php/help
|
login
|
success and redirect to 
http://MYSITE/website_dev.php/help (NOT IN "other")



Is it bug OR I Need to set any file?
icon10.gif  Re: Redirecting to the refering page: after successfully login [message #58248 is a reply to message #57652 ] Fri, 08 August 2008 09:57 Go to previous messageGo to next message
n_shukla2000
Messages: 32
Registered: February 2008
Member
Problem has been solved Laughing Laughing
Re: Redirecting to the refering page: after successfully login [message #58576 is a reply to message #58248 ] Wed, 13 August 2008 11:33 Go to previous messageGo to next message
dohfr  is currently offline dohfr
Messages: 53
Registered: July 2008
Location: FRANCE
Member
hey,
good for you,
any tips, something? Razz
for people who read your topic? Razz
Re: Redirecting to the refering page: after successfully login [message #58579 is a reply to message #57652 ] Wed, 13 August 2008 11:41 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yes please - if you post a question, and then solve it yourself, it would be great if you'd post a few words on how you sorted it out Very Happy

Thanks.


Remember Palestine
Re: Redirecting to the refering page: after successfully login [message #61577 is a reply to message #58579 ] Mon, 22 September 2008 23:00 Go to previous message
kubens  is currently offline kubens
Messages: 89
Registered: February 2006
Location: Germany
Member
May this is helpfull Very Happy
Put this in your login template

<?php

if (!$sf_user->getAttribute('referer'))
{
  $sf_user->setAttribute('referer', $sf_request->getParameter('module').'/'.$sf_request->getParameter('action'));
}

?>


Br
Wolfgang
Previous Topic:count query
Next Topic:SfGuard Question
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software