Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

this is driving me nuts


guntersammet

Recommended Posts

Posted

Hello all:

I have a local installation which doesn't allow me to login anymore. It seems like it is a session or cookie problem but I deleted all the cookies and cached files with no luck. The same code is working just fine on the live server. Other installs on my local machine do allow me to login, so I think I can rule out any PHP issues.

Also tried to switch sessions to the DB to see if it works. I always get looped back to the default page. Tried to delete tmp files and manually delete the temporary internet files and cookies. No luck :-(.

Working on W2K with IE 5.0 and WAMP.

Any pointers would be appreciated!

TIA

 

Gunter

Posted

OK. Tracking down the stuff a bit more. It isn't keeping the session id. And because of that, the session variables dissapear as well.

Haven't found out the reason for that. Any pointers would be appreciated.

TIA

 

Gunter

Posted

In Admin ~ Configuration ~ Sessions, do you have it set to Force Cookies and have your browser set to not accept cookies?

 

That is the only thing that I can think of.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

This isn't in my admin yet. IIRC, that is not in the MS1 rlease. The code I am using has been updated till MS1.

I am little closer now. I have it running. For some odd reason the cookies have been disabled. Once I enabled the cookies everything worked fine again. Still would like to know why I can't work without cookies in my local environment but it works on the server.

Thanks for the pointer. Will check the code.

 

G.

Posted

Yep, if you are pre-MS1 then you will not have that option.

 

Check your includes/configure.php and/or includes/application_top.php files for the require cookie setting.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

If you have Search Engine Friendly URLs enabled, disable them and try again.

 

There was a problem with the cookie path if DIR_WS_CATALOG was just '/' with the set_cookie_params function removing the last character of DIR_WS_CATALOG (to remove the last slash). With SEFU enabled, the cookie path would automatically be set to /default.php/ (for example).

:heart:, osCommerce

Archived

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

×
×
  • Create New...