• Post Reply Bookmark Topic Watch Topic
  • New Topic

User identification

 
Alexander Selling
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys!

I was wondering how I would go about keeping tracking of the potential users in my web shop ?
I mean I know I can force them to log in, but then what ? What do I use to tie that user to his "account". And besides most web shops don't require you to log in :/

I've searched this forum and some on google but I guess I'm using the wrong search strings

Thanks in advance

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSession is the answer .

Storing the data inside HttpSession Object and later retreving them in other pages as required .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If they don't require you to log in, then there's no concept of a user account. There can be a temporary "account", which really just means "shopping cart".

You *can* have a sort-of account by storing a cookie on the user's machine, but it's only useful if (a) they're on that machine, and (b) they allow you to set the cookie. But it's about the only mechanism you have available besides logging in.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!