Zen Cart Logo
Forums / General Questions / redirect after login

redirect after login

Locked

Views: 3,421

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
2 Jun 2006, 9:33 AM
#1
teva avatar

teva

Zen Follower

Join Date:
Sep 2004
Posts:
101
Plugin Contributions:
0

redirect after login

When i'm browsing categories and i find product i like, i want to login to check prices. But after login i get redirected to index page. Can this be done so that i get redirected to the page i was, before i was loged in?

I think i need to change FILENAME_DEFAULT to something else in /includes/modules/pages/login/header_php.php

zen_redirect(zen_href_link(FILENAME_DEFAULT));

Any idea? Tnx

2 Jun 2006, 10:39 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: redirect after login

actualy there might be something wrong with your sessions settngs, once logged in your suppposed to go back to the page you were browsing

2 Jun 2006, 11:39 AM
#3
teva avatar

teva

Zen Follower

Join Date:
Sep 2004
Posts:
101
Plugin Contributions:
0

Re: redirect after login

Hmmm...where can i check this? I use version 1.2.7 with SEFU addon

2 Jun 2006, 12:39 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: redirect after login

try turning sefu OFF for a minute and try it

2 Jun 2006, 2:12 PM
#5
teva avatar

teva

Zen Follower

Join Date:
Sep 2004
Posts:
101
Plugin Contributions:
0

Re: redirect after login

No changes. I still get redirected to index.php?main_page=index

Does this have to do something with store sessions option, when installing cart?

8 Jun 2006, 6:00 PM
#6
teva avatar

teva

Zen Follower

Join Date:
Sep 2004
Posts:
101
Plugin Contributions:
0

Re: redirect after login

Sorry for bumping this, but i still can't solve this problem. Any idea?
Tnx

8 Jun 2006, 9:24 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: redirect after login

You would need to add a line to your includes/modules/pages/product_info/header_php.php:```php
$_SESSION['navigation']->set_snapshot();

Probably best to put it just before this line:
```php
  require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
8 Jun 2006, 10:34 PM
#8
teva avatar

teva

Zen Follower

Join Date:
Sep 2004
Posts:
101
Plugin Contributions:
0

Re: redirect after login

Thank you very much, this works great!

7 Feb 2008, 8:18 PM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: redirect after login

DrByte, can we put it somewhere like so that it will take effect on all pages?

25 Feb 2008, 4:27 PM
#10
minneapolis_dan avatar

minneapolis_dan

New Zenner

Join Date:
Jan 2006
Location:
minneapolis
Posts:
69
Plugin Contributions:
0

Re: redirect after login

Yes, is there a place where I can set the default page after login? When a customer logs in, they always get sent to the home page instead of Account View, and I want to be able to set this.

20 Oct 2008, 2:55 PM
#11
minneapolis_dan avatar

minneapolis_dan

New Zenner

Join Date:
Jan 2006
Location:
minneapolis
Posts:
69
Plugin Contributions:
0

Re: redirect after login

Hasn't anyone else experienced this? I'm still looking for an answer, if possible.