asp.net mvc 3 - handling unique urls for each user -


i want provide each users of website separate url users see same pages.
www.myweb.com/user1/logon
www.myweb.com/user2/logon

similary
www.myweb.com/user1/wellcome
www.myweb.com/user2/wellcome

is there mechanism in asp.net mvc can handle such things?

isn't route working you:

routes.maproute(     "myroute",     "{user}/{action}",     new { controller = "home", action = "index" } ); 

you might need custom authorize attribute ensure user token coming url matches 1 in authentication cookie or user1 type in url user2 , see pages, if not requirement you don't need to.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -