开发者

save user actions?

i want to save logged in users actions so when they visit the page again they don't have to do the same thing again eg. what list values they chose or what page they were on before they logged out.

i dont want to save it as cookies because i want them to be unchanged even if he switch computer. sh开发者_如何学Pythonould i save these kind of information in another table in in the database?

should i have an ID column? or just and USER_ID as the unique id column and then the settings columns?


Yes, you'll have to put them in a table dedicated to options and I suppose you could safely ignore the id column and have just the user_id as a foreign key.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜