Re: Is a Permanent Login (Auto-Login) Possible?
I'm also having problems getting this working. We've tried IE6 & Firefox on PCs, and Safari & Firefox on macs.
I have a zencart_cookie_permalogin cookie. It's got:
Content: big long string, mostly %7E
Host: my domain with www, but no preceding dot.
Path: correct path to shop below Host
Send for: any type of connection
Expires: tomorrow
Any ideas?
Re: Is a Permanent Login (Auto-Login) Possible?
I seem to remember it (the cookie) doesn't work if your page url doesn't have the www. in front.
Delete the cookie, run again with www. in the url for the site. Sometimes the config for zen gets set without the www. in front, so all your own zen pages are running without www. at your end. The config file entries for your domain can be corrected for zencart manually.
Otherwise, thats why somewhere here I did that jscript, to relocate any non-www page to the better formed www. page. You can also do it with a htaccess I think.
Hope this helps rather than hinders!
Re: Is a Permanent Login (Auto-Login) Possible?
Aha! Thanks. I added added some mod_rewrite lines to .htaccess (below) and it seems to be working. Thanks!
Code:
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Re: Is a Permanent Login (Auto-Login) Possible?
Hi there,
first i want to say this is a great contrib that saves a lot of time to my customers. Thanks! Also good work hareslade for exploring this contrib further and doing some good work on in.
Now, my only problem with this contrib was, that all worked fine when customer with autologin enabled returned to the home page. But when they returned to another page, fe. product_info they weren't logged in automaticaly, because the autologin code is only in the header of index page. That can be confusing for the customer.
What i did to fix this is i moved the block of autologin code from pages/index/header_php.php to the end of application_top.php file. Now everything works flawlessly and customer is logged in automaticaly when returning on any page of the shop. Also it seems that the zen_redirect line is not needed anymore.
What do you think about this? I'm not sure if what i did is correct, but everything works like it should on my test site.
Re: Is a Permanent Login (Auto-Login) Possible?
if it works.. its great :)
Re: Is a Permanent Login (Auto-Login) Possible?
I had the same problems with this as studeo has. I messed around with the settings and found that if:
1.) Under Configuration > Customer Details > Customer Shop Status is set to "1= Must login to browse" this mod does not work, any other setting seems to work fine however.
2.) Under Configuration > Customer Details > Customer Approval Status is set to "1= Must be Authorized to Browse" this mod does not work, any other setting seems to work fine however.
Is there perhaps a work-around for this in order to get this cool mod working with the abovementioned settings enabled?
Thanks!
Re: Is a Permanent Login (Auto-Login) Possible?
Excuse the bump, any ideas regarding what code has to change in order to get this working with aforementioned settings enabled?
Re: Is a Permanent Login (Auto-Login) Possible?
Well, I've tried to get this module installed and working, but I couldn't get it to autologin. But after reading this thread 3 times I believe I figured out my problem. The site I'm installing it on used a share ssl certificate. So the domain name for the login screen is different then the main domain.
Once I used the shared cert domain and path I was logged in automatically.
So is there a way to have the autologin work on the login page instead of the index page? So the domain matches the cookie?
Re: Is a Permanent Login (Auto-Login) Possible?
Thanks for the tip b00n. Just for anyone else I found the autologin code seemed to work best when placed at the bottom of the file application_top.php - had some issues with it being at the very top of the file.
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
acetate
Thanks for the tip b00n. Just for anyone else I found the autologin code seemed to work best when placed at the bottom of the file application_top.php - had some issues with it being at the very top of the file.
This is where i have placed it as well.
Only drawback, it seems to be only working with IE, not with FF. Any thoughts why that may be?
Both browsers do have the zen_perma_ coockie...
Cheers,
Jeroen