Hi all
I'm working on a webbased hardware management system. I use ASP.Net for the presentation layer, C# classes for the business layer and SQL server (Stored Procedures) for the database layer.
I'm able to store information in the Session. I can use this info only on ASP.Net.
Is there a way to get the session to work in the business and database layer.
An Example:
On a click event in an ASP.Net page:
Session["UserName"] = textUserName.Text;
logging logger = new logging();
In the logging class:
logme(Session["UserName"]);
But the Session object gives a reference error. How can I get this to work (don't have to be using sessions)?
I would like to have an array where I can store user specific information which I can use on all the layers as long as the session is running.
Hope I'm a bit clear what my problem is.
evoRoel
I'm working on a webbased hardware management system. I use ASP.Net for the presentation layer, C# classes for the business layer and SQL server (Stored Procedures) for the database layer.
I'm able to store information in the Session. I can use this info only on ASP.Net.
Is there a way to get the session to work in the business and database layer.
An Example:
On a click event in an ASP.Net page:
Session["UserName"] = textUserName.Text;
logging logger = new logging();
In the logging class:
logme(Session["UserName"]);
But the Session object gives a reference error. How can I get this to work (don't have to be using sessions)?
I would like to have an array where I can store user specific information which I can use on all the layers as long as the session is running.
Hope I'm a bit clear what my problem is.
evoRoel