Last post Feb 08, 2012 11:29 AM by msteel9999
Sep 28, 2011 03:35 PM|msteel9999|LINK
I'm converting an ASP project into MVC. I want to keep the existing authentication mechanism in the ASP part of the project but
automatically log the user in when they try to access one of the MVC pages.
With the two projects running side by side in different app pools I won't be able to pass session variables between the two.
Any help appreciated.
Feb 04, 2012 02:34 PM|interwanderer1|LINK
Well, you could create a md5 hash based on the username and time for example and send those thru via the url, if on the other end the expected variables pass, the user can be authenticated...
Feb 04, 2012 02:55 PM|silver cookie|LINK
this help you to implement authentication system in your application.
Feb 08, 2012 11:29 AM|msteel9999|LINK
Pretty much did it this way.
I encrypted the userid as stored in the database and passed this in the url to the MVC part of the project.
Then I authenticated when accessing the first page in the mvc part of the project storing it in the session
to avoid logging in on every page accessed.
Only tricky bit is calling my encryption class from ASP which requires some regasm fun and is tricky on 64 bit servers.