Hello Everybody, I have something that came into my mind but actually i don't know why it throughs an error, any way here is the problem
I've made a protected page with a cookie that carries the userId and another one for password using this form
For setting cookie
Response.Cookies["UserID"].Value = UserID;
and
Request.Cookies["UserID"].Value
for reterving the data from it but when the user got into a protected page without passing on the login page it throughs an error, but i've solved it using try and catch. but i want to know why it throughs an error and not like the session variable??
Thnxmay the user browser disable the cookiesyes its already disabled, or not set in the first place, which means that its already equals nullMay the user browser disable the cookiesabo 7meed e3mily add 3andak 3ala el msn
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> the user browser disable the cookies
I've made a protected page with a cookie that carries the userId and another one for password using this form
For setting cookie
Response.Cookies["UserID"].Value = UserID;
and
Request.Cookies["UserID"].Value
for reterving the data from it but when the user got into a protected page without passing on the login page it throughs an error, but i've solved it using try and catch. but i want to know why it throughs an error and not like the session variable??
Thnxmay the user browser disable the cookiesyes its already disabled, or not set in the first place, which means that its already equals nullMay the user browser disable the cookiesabo 7meed e3mily add 3andak 3ala el msn
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> the user browser disable the cookies