Hi All,
I am new to this but I have read that session variables should be
avoided where possible. Mainly due to performance and scale-ability
So what are the alternatives?
Here is what I have.....
When the user logs in and authenticates I have an "User Object". This
hold the basic data about the user I then use in other pages the user
visits. At present I store that object in a Session variable
Session.Add("UserDetails", objUser)
And retrieve it on the next page visited
Dim objUser As UserDetails = CType(Session.Item("UserDetails"),
UserDetails )
I do not always know the next page the user may visit.
What are my alternatives to this method?
Also if I am using the same details from page to page should I recall
these detail from the database each time or would it be better
practice to store them in an object and pass from page to page?
Many Thanks
Fred
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net