Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have an old website created in VS 2008 i have migrate it into new framework VS 2012.
Now i have a new request to create a module in MVC but inside same solution. I have created a new MVC project inside same solution but i have following issues -

My default login into website is available in my traditional website (old) and i need to access the Session variable into my newly created project which is in MVC.

So how can i achieve it to navigate to MVC website and access same Session variable inside it.
Posted
Comments
F-ES Sitecore 4-Sep-15 10:17am    
Just convert the entire site to MVC if that's what you want, you can't easily share session between sites. Doing a half-and-half is doomed to failure, and it also shows that people are probably making bad decisions when it comes to the solution architecture.

Your best bet is probably to encrypt the data you want to send and add it to the url as a parameter, then your new site and decrypt it.
Ajay_Saini 7-Sep-15 10:48am    
My old application is using PageMethods of ScriptManager and there is no server side controls are used in any of the pages all the controls are normal HTML controls. So it is not feasible for us to convert into MVC. We need to add a separate project (in MVC) that's why i am keen to know about the above query.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900