Page 1 of 1
Customer can't stay logged in
Posted: Tue Apr 10, 2012 11:32 am
by Charlie2000
Hello,
I've just created a website with e commerce there:
http://13styx.com/sofrench/upload/
Everything is going well, very happy with it but I've just registered a user and I can't seem to stay logged in. (ie: If I login and then browse to another page, I'm asked to log in again) I've tried different browsers and computers and I'm having the same issue.
Anyone knows what's going on ?
thanks!\
running v1.5.1.3
Re: Customer can't stay logged in
Posted: Tue Apr 10, 2012 1:29 pm
by Avvici
This is not behavior known to the default install of OC. It is however known behavior in past post's I have seen for custom templates. Your install logs you out when you move about in route=account/whatever.....or if you attempt to checkout. Wouldn't take much to look at why the session is being unset. Am speaking about the session that is created once you login.
Re: Customer can't stay logged in
Posted: Tue Apr 10, 2012 2:42 pm
by Charlie2000
thanks for your reply.
would you be able to refer me to another post regarding the subject ?
I'm not great with coding, which is why I got interested in Opencart in the first place...
Re: Customer can't stay logged in
Posted: Wed Apr 11, 2012 8:25 am
by Charlie2000
any help would be appreciated!
Edit: (If someone could just briefly explained how to check the error that unsets the session, that'd be great)
Re: Customer can't stay logged in
Posted: Wed Apr 11, 2012 1:31 pm
by Charlie2000
anyone please ?! I've been looking for an answer to this everywhere for the past two days and can't find anything.
Re: Customer can't stay logged in
Posted: Wed Apr 11, 2012 2:00 pm
by Avvici
Have you checked your error logs in admin? That would be a start.
Re: Customer can't stay logged in
Posted: Wed Apr 11, 2012 2:14 pm
by Charlie2000
I have and this one error that I think is unrelated:
2012-04-11 5:27:02 - PHP Notice: Undefined variable: return_to in /home/styxcom/public_html/sofrench/upload/admin/view/template/module/sellegance.tpl on line 439
Re: Customer can't stay logged in
Posted: Wed Apr 11, 2012 2:17 pm
by Charlie2000
Charlie2000 wrote:I have and this one error that I think is unrelated:
2012-04-11 5:27:02 - PHP Notice: Undefined variable: return_to in /home/styxcom/public_html/sofrench/upload/admin/view/template/module/sellegance.tpl on line 439
The line is this:
<input type="hidden" name="return_to" id="return_to" value="<?php echo $return_to?>" />
I've tried deleting it and it doesn't change anything.
Re: Customer can't stay logged in
Posted: Wed Apr 11, 2012 4:01 pm
by Avvici
Get on skype and I can help you. It's free chat. My skype is Involution Media. Add me
Re: Customer can't stay logged in
Posted: Thu Apr 12, 2012 12:47 am
by fili
i think is about session problem, not every user have the same problem
at yesterday i have same problem, and already solve it
it's about server issue, maybe you can contact your hosting provider to turn off
cache (facility) from your server / cpanel,
it's work.. just contact your hosting provider. to turnoff cache setting special on your hosting / cpanel
or do some trick at session.php in \system\library\ move the session folder you can googling at this forum
but it doesnt neat solution
Re: Customer can't stay logged in
Posted: Fri Apr 13, 2012 8:14 am
by Charlie2000
I talked to my hosting tech support and they said it wasn't related to them.
can you be more specific about that trick on session.php ?
I've added you on Skype avvici, thank you.
Re: Customer can't stay logged in
Posted: Fri Apr 13, 2012 12:09 pm
by Avvici
They might be lying. I just tested your theme you sent me on a fresh version of Open Cart on my own server, and I was able to stay logged in. Try reinstalling Open cart, upload your theme and if it still doesn't work then call them. I believe that your PHP version needs to be reinstalled.
Re: Customer can't stay logged in
Posted: Fri Apr 13, 2012 2:03 pm
by MarketInSG
avvici wrote:They might be lying. I just tested your theme you sent me on a fresh version of Open Cart on my own server, and I was able to stay logged in. Try reinstalling Open cart, upload your theme and if it still doesn't work then call them. I believe that your PHP version needs to be reinstalled.
Agree with avvici, hey are lying. The problem lies with them. If you do a search on this problem, all the solution is to contact your host.
Might be a permission error or something via the apache user. Try calling your host and request for them to "create a session directory". Most user face this problem with godaddy.
Re: Customer can't stay logged in
Posted: Fri Apr 13, 2012 2:04 pm
by MarketInSG
Or can we see your htaccess file? I can't even load your account page. It's not redirecting properly.