Last post Jun 29, 2011 07:45 AM by sandiprohokale
Jun 28, 2011 02:59 AM|sandiprohokale|LINK
I am using ASP.net 1.1
In Login form I have declared a cookie to store User Role. And populated with vaule according to user logged in.I am accessing this cookie in Global.asax file's
Request.Cookies["USER"] but it is evaluated to null every time. But I have set value in login page.
Will anybody tell me why this is happening? & solution for this problem.
Jun 28, 2011 06:37 AM|bhupalb|LINK
you have to use
Response.Cookies["USER"] then u will get
We have to get values by using Response class not with Request
if it is useful mark it as answer
Jun 28, 2011 10:24 AM|sudeep_13|LINK
Do you mean Application_AuthenticateRequest ??
You can refer this
link for a quick reference
Jun 29, 2011 07:45 AM|sandiprohokale|LINK
I had used below code to declare the cookie
HttpCookie objCookie =new HttpCookie("INFO");
And then added value to it as follows
I have accessed objCookie value as follows and problem is solved
I got a value "ADMIN"
Thanks for your intrest in my problem.