mortenstarck
mortenstarck

Reputation: 2803

Handling Session in mvc3

I have an website there all user information is stored in Session. But if the Session is expired, is there an way to redirect to the user back to login instead of giving me an error. The problem is worst in the View where it's used to display username.

Upvotes: 0

Views: 1176

Answers (1)

JDwyer
JDwyer

Reputation: 844

You could create an action filter that checks the users session and redirects if they need to login. This Question May Help you.

Upvotes: 1

Related Questions