Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login.php pops up when site is left for some time


woozys

Recommended Posts

Posted

Hi folks,

 

I'm new here, but I have been using Oscommerce v2.2 e-commerce platform for about a year.

 

I have a problem with login.php but have not managed to find the solution anywhere.

Login function works fine, but the annoying thing is that when you leave the site not browsing for a few minutes, and then press something on a page, login.php pops up and asks you to log in or create an account. Then if you press Refresh or any other link it directs you to that page without login popping up.

 

I know it is not very serious, but I believe some customers might be put off and exit my shop because of it.

 

Have any of you guys came across this problem? I would be grateful if you could help me out.

 

Link to my website

 

Thanks in advance.

Tadas

Posted

Hi folks,

 

I'm new here, but I have been using Oscommerce v2.2 e-commerce platform for about a year.

 

I have a problem with login.php but have not managed to find the solution anywhere.

Login function works fine, but the annoying thing is that when you leave the site not browsing for a few minutes, and then press something on a page, login.php pops up and asks you to log in or create an account. Then if you press Refresh or any other link it directs you to that page without login popping up.

 

I know it is not very serious, but I believe some customers might be put off and exit my shop because of it.

 

Have any of you guys came across this problem? I would be grateful if you could help me out.

 

Link to my website

 

Thanks in advance.

Tadas

In includes/functions/session.php u have

if (STORE_SESSIONS == 'mysql') {

if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {

$SESS_LIFE = 1440;

}

 

change $SESS_LIFE = 1440; to

$SESS_LIFE = 14400; or a higher value.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

It is doing that for security reasons. After people have logged in and they remain idle for 1440 seconds (24 minutes) it logs them out. If you want to decrease that security then increase the length of time it takes for that to happen.

 

But I would not do it. You probably notice because you probably don't really shop on your store but I assure you customers don't notice because they are in fact shopping and if not then are grateful for the auto log out.

Posted

It is doing that for security reasons. After people have logged in and they remain idle for 1440 seconds (24 minutes) it logs them out. If you want to decrease that security then increase the length of time it takes for that to happen.

 

But I would not do it. You probably notice because you probably don't really shop on your store but I assure you customers don't notice because they are in fact shopping and if not then are grateful for the auto log out.

 

Thanks guys! Will try that.

 

The thing is that once you log in, login.php never pops up again. It only appears for users who haven't logged in.

 

I think it can still be annoying, let's say customer is browsing on my site, then go somewhere, comes back and press a picture or another link and gets put off by login.php.

Posted

Thanks guys! Will try that.

 

The thing is that once you log in, login.php never pops up again. It only appears for users who haven't logged in.

 

I think it can still be annoying, let's say customer is browsing on my site, then go somewhere, comes back and press a picture or another link and gets put off by login.php.

 

If that is your problem then that fix won't help you.

 

I think what you are now telling us is that if you are not logged in and are idle for greater than the allowed time, you are asked to log in if you click a link but if you then refresh the page, the request goes away?

Posted

Use My above suggestion:

change $SESS_LIFE = 1440; to

$SESS_LIFE = 14400; or a higher value.

 

do this and the login will last for 240 mins.

 

or set the value that You feel is ok for Your cart.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

If that is your problem then that fix won't help you.

 

I think what you are now telling us is that if you are not logged in and are idle for greater than the allowed time, you are asked to log in if you click a link but if you then refresh the page, the request goes away?

 

You've got me right, Flying Kites.

Posted

Well that is very strange indeed. We'll need a lot more info from you to work it out I think.

 

Are you sure it happens to other people? Or only to you?

 

How do you manage sessions? Sessions or cookies?

 

Do you see session IDs in the URLs on your site?

 

What Add Ons have you installed?

Posted

Sorry, Satish, but your solution did not fix my problem. Thanks for helping anyway.

 

My solution is only if some one logged in was getting kicked out and asked again to login.

 

This would increase the cookie expiry time to 240 mins from 24 mins.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Well that is very strange indeed. We'll need a lot more info from you to work it out I think.

 

Are you sure it happens to other people? Or only to you?

 

How do you manage sessions? Sessions or cookies?

 

Do you see session IDs in the URLs on your site?

 

What Add Ons have you installed?

 

Yes it happens on any pc I try my site. Also I had a few complaints from other users.

 

My Sessions settings:

 

Session Directory /tmp

Force Cookie Use True

Check SSL Session ID True

Check User Agent True

Check IP Address True

Prevent Spider Sessions True

Recreate Session True

 

No I don't see session IDs in URLs.

 

Add-ons, oh there too many to list, but as far as I remember I had this problem since I started using oscommerce before I even installed any add ons.

 

By the way, this site was based on a template, so this might be an issue. I know you guys hate templates, but for me, being non IT guy doing everything myself it was the only option..

It seems to be the only pain in the a** at the moment and it would be fantastic if you could solve it. If you need I can paste codes from my site if it's possible to solve this.

 

Hope that helps.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...