Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to set up my cookies to stay logged in


Concussion4

Recommended Posts

Posted

Hello,

 

The e-commerce website i am running deals with mostly women, and young teenage girls to around 30 years old. I have a feeling alot of them might forget the password they pick, etc. So i would like to set it up so that the cookies keep them logged in forever. So once they log in, they will never have to log in again unless they log out. I have seen this on other sites, i just am not sure if OsCommerce supports this. I couldnt find anything about this in the configuration file, so i was hoping one of you more knowledge people could point me in the right direction for the information, or tell me the information i am looking for. :) Thanks alot for the advice in advance, this is a great forum for knowledge :D

Posted
In General most Browsers will store your password used while loggin in to Sites

 

Browsers for example:  Internet Explorer (includes AOL Browser), Netscape, Opera...etc

 

oh lets not forget FIREFOX :thumbsup:  (my preferred choice)

 

Ahh ok, yeah, i see.. I was wondering though if there was anyway to not only store it, but make it so they dont have to type it in at all. Maybe it is just the way i have my IE set up, but for some reason if i log into my store, close the window, and then go to my store again i would have to log back in and that is what i was trying to get around. I will try it in my firefox window and see if it is just the way i have IE set up.

Posted
yup, its the way you have it setup...

 

If I log in to my store...I will stay logged in even after I close out my windows.....

 

Sorry to bother you again man, seems to happen to me using firefox aswell. Also something weird that happend to me is i logged in, and if i would click say, Cart contents or shopping cart, i would be asked to log in again sometimes before seeing the page. Think i have my cookies set up wrong? Im using a shares SSL.

 

http://www.wordwidereplica.com/catalog/ is my website, nothing is changed from a fresh install except a template.

Posted

Hmmmm:

Parse error: parse error in /home/wordwide/public_html/catalog/includes/configure.php on line 21

 

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /home/wordwide/public_html/catalog/includes/application_top.php on line 53

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/local/lib/php') in /home/wordwide/public_html/catalog/includes/application_top.php on line 53

 

If it is something else other than your browser settings.......the Veterans will have to help you.....

Posted

You have your includes/configure.php file set up wrong. Post it here minus the Database user name and password.

 

Vger

Posted
You have your includes/configure.php file set up wrong.? Post it here minus the Database user name and password.

 

Vger

 

define('HTTP_SERVER', 'http://wordwidereplica.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://host263.ipowerweb.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'wordwidereplica.com');

define('HTTPS_COOKIE_DOMAIN', 'host263.ipowerweb.com/~wordwide/');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/~wordwide/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/wordwide/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

I have been changing it around trying to get it to work.

 

edit: BTW sorry TCwho, you must have went to it while i was changing the config file.

Posted

Yeah Vger most likely right...

 

I went back to your site..this time it worked....created account....and when It was supposed to take me back to the catalog/index page..I got an error...not found

 

when i went back on my own..i was logged in as TCwho......but when I closed out my browser...and opened it back up...went back to your site...I was no longer logged in

Posted
Yeah Vger most likely right...

 

I went back to your site..this time it worked....created account....and when It was supposed to take me back to the catalog/index page..I got an error...not found

 

when i went back on my own..i was logged in as TCwho......but when I closed out my browser...and opened it back up...went back to your site...I was no longer logged in

 

Yeah i saw that 404 error twice so far myself, i might just forget this shared SSL certificate if i cant get this to work and get a personal one.

Posted

define('HTTPS_COOKIE_DOMAIN', '');

 

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

That should do it.

 

Vger

Posted
define('HTTPS_COOKIE_DOMAIN', '');

 

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

That should do it.

 

Vger

 

Hey Vger, just made that change but now when i go to any https:// link on the site, there is a 404 error :'( I wont touch it until ya get back to me, think i should just get my own SSL private? I heard from ipowerweb it was like 99 bucks for a year.

 

Here is my Entire Config php file

 

define('HTTP_SERVER', 'http://wordwidereplica.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://host263.ipowerweb.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'wordwidereplica.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/wordwide/public_html/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'Username');
 define('DB_SERVER_PASSWORD', 'Password');
 define('DB_DATABASE', 'wordwide_osc ');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
// STS: ADD: Define Simple Template System files
 define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php');
 define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); 
 define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php');
 define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/');
 define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); 
 define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php');
 define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php');
 define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php');
  // STS: EOADD
?>

 

Thanks alot for all the help , i really appreatite it. Im just not sure if this is worth it and would be better off paying the 99$

Posted

My mistake (blush), this one line was correct

 

define('DIR_WS_HTTPS_CATALOG', '/~wordwide/catalog/');

 

Vger

Posted

I went back to your site and tried to log in..and got an error. Here is how I have mine setup...maybe it can help you out:

 

  define('HTTP_SERVER', 'http://www.thelighthousebooks.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://ssl.perfora.net'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.thelighthousebooks.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://ssl.perfora.net/thelighthousebooks.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/thelighthousebooks.com/catalog/');

 

...everything seems to be working for me... however the site is still not live......

Posted
I went back to your site and tried to log in..and got an error.  Here is how I have mine setup...maybe it can help you out:

 

 ?define('HTTP_SERVER', 'http://www.thelighthousebooks.com'); // eg, http://localhost - should not be empty for productive servers
?define('HTTPS_SERVER', 'https://ssl.perfora.net'); // eg, https://localhost - should not be empty for productive servers
?define('ENABLE_SSL', true); // secure webserver for checkout procedure?
?define('HTTP_COOKIE_DOMAIN', 'www.thelighthousebooks.com');
?define('HTTPS_COOKIE_DOMAIN', 'https://ssl.perfora.net/thelighthousebooks.com');
?define('HTTP_COOKIE_PATH', '/catalog/');
?define('HTTPS_COOKIE_PATH', '/catalog/');
?define('DIR_WS_HTTP_CATALOG', '/catalog/');
?define('DIR_WS_HTTPS_CATALOG', '/thelighthousebooks.com/catalog/');

 

...everything seems to be working for me...  however the site is still not live......

 

Thanks man, im just going to contact my Webhoster tomorrow and have them do it =p i turned off SSL until then. But i know why people arent staying logged in, i used firefox too look at my cookies, and mine is coming up like this

 

Name : osCsid

Content: 9efe32734c872b18f24ea9bf55fafe58

Domain: .wordwidereplica.com

Path: /catalog/

Send For: Any type of connection

Expires: at end of session

 

Anyone know how to change when it expires? i Would like it to be never, or some time in 2010. Thanks for all the help everyone, not sure what is wrong but with SSL on i get 404 errors, im going to have ipowerweb help me out, and if it still has problems im just gonna buy my own cert.

Posted
you should really compare your setup with mine.....i see a couple differences....like I said I used shared ssl....

 

changed it and still having the same problem, im looking on google on how to set when the cookie expires now

Posted
changed it and still having the same problem, im looking on google on how to set when the cookie expires now

 

I found a add-on to do this on the Oscommerce website =) Hopefully ipowerweb will show me what to do to set up SSL and i will be good to go :thumbsup: Thanks for the help

Posted
well just to clarify....the error I was talking about was when you had ssl enabled...and you click on the link to log in........ I would get the error.......

 

Finally got it to work, using these settings.

 

define('HTTP_SERVER', 'http://wordwidereplica.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://host263.ipowerweb.com/~wordwide/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'wordwidereplica.com');

define('HTTPS_COOKIE_DOMAIN', 'host263.ipowerweb.com/~wordwide/');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Archived

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

×
×
  • Create New...