Storing user specific data in ASP.NET MVC

Storing user specific data in ASP.NET MVC



In my application each user has it's own menus depending on changing information on the database.



This way when a user logs-in I have to keep the parameters he can choose somewhere in a Station state table.



So when he choose the parameters I'll retrieve the correspondent option id and make a response from there.



I'm keeping this value in a Current Session object but I'm encountering several problems.



What's the best practice for doing this?
I'm reading several articles that state the Session object is not a good idea in ASP.NET MVC.


ASP.NET MVC




2 Answers
2



Session objects can still be used within MVC check out the answer here Using Session objects in MVC, Is it really bad?



It points to 2 other questions that had a similar question.



What kind of problems are you having?



You can use Asp.Net Cookies, you can create, assign and destroy within the controller
Follow this link Cookies in ASP.Net MVC 5 for more help ...



Required, but never shown



Required, but never shown






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)