Session ID in global.asax

174 views
Skip to first unread message

Tedsby

unread,
Nov 17, 2010, 6:30:15 AM11/17/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Does anyone have an example of how to create a session variable in the
Session_OnStart method and save this in the global.asax file? This is
for use in a retail web site.

Jamie Fraser

unread,
Nov 17, 2010, 12:10:53 PM11/17/10
to dotnetde...@googlegroups.com
Session.Add("mykey", myValue); ?

Goldie

unread,
Nov 17, 2010, 10:57:59 PM11/17/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Have you thought of using a globally shared library reference?

Session values tend to be viewable in plain text. Or placing the
values in a ViewState variable?

jackie arauzo

unread,
Nov 17, 2010, 1:53:19 PM11/17/10
to dotnetde...@googlegroups.com
hey tell me more. where? I am thinking now- probably am having the same problem

nnksoft

unread,
Nov 17, 2010, 11:57:24 AM11/17/10
to dotnetde...@googlegroups.com
HttpContext.Current.Session["varName"]="value"

jackie arauzo

unread,
Nov 17, 2010, 1:54:25 PM11/17/10
to dotnetde...@googlegroups.com
"I have a key"
Reply all
Reply to author
Forward
0 new messages