Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Welcome Back! - Problems with Greeting Script/Cookies


beckysmith

Recommended Posts

Posted

I've searched for log off, log out and other things but cannot get an answer for this one...

 

When I log into the site it says "Welcome back Fred!" etc - that's fine as I have set up an account as Fred... But when I come to log out and someone adds a new account using a different name (using the same computer) it still says "Welcome back Fred!" even if they are now logged in as user Bob!

 

Is there an easy way, without having to manually delete cookies, to make sure OsCommerce pick up the name for the user that's now logged in?

 

Or, is there also an easy way (again, without having to manually delete the cookies) to remove the name and take it back to Guest! every time someone logs out?

Posted

I commited a fix to CVS a week or so ago which only greets the user when they are logged on.

 

You can see the changes here

 

http://cvs.sf.net/cgi-bin/viewcvs.cgi/tep/...=1.196&r2=1.197

 

http://cvs.sf.net/cgi-bin/viewcvs.cgi/tep/...r1=1.70&r2=1.71

 

http://cvs.sf.net/cgi-bin/viewcvs.cgi/tep/...r1=1.72&r2=1.73

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

I was tearing my hair out trying to fix that problem; now, problem solved! (using a Nov 2002 snapshot).

 

Thanks again! :)

Archived

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

×
×
  • Create New...