|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
ProblemWe need to transfer ASP session state to ASP.NET session state. Things to consider
SolutionWe can use database as the intermediate platform for transferring sessions. Create a table as:
The For i = 1 to Session.Contents.Count)-1
strSql = Query to insert Session ID, Session.Contents.Key(i),
Session.Contents.Item(i)
cmd.CommandText = strSql
cmd.Execute
Next
Through this code, we can have all our session variables in database. In order to make this generic, we will write this code in a separate page, say Transfer.asp. Asp page will contain now -> Transfer.asp will have The aspx page will retrieve all the variables and put into the session in a similar way. We have passed the GUID as Query String. Not a good idea, I guess. Hope you all find this useful.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||