copy and paste url
-
hi i have problem for which i have been struggling fro last two days i hope u can slove this consider a scenario 1> user login using his userid and password 2> he get his required page 3> user copy the url 4> user logout 5> he paste the url 6> he is getting page without any validations i am using formsauthetication.signout session.abdoan session.clear i have written validation code on page_init event which does not fire when u copy and paste url i think i am able to explain my problem please help me its urgent thanks
-
hi i have problem for which i have been struggling fro last two days i hope u can slove this consider a scenario 1> user login using his userid and password 2> he get his required page 3> user copy the url 4> user logout 5> he paste the url 6> he is getting page without any validations i am using formsauthetication.signout session.abdoan session.clear i have written validation code on page_init event which does not fire when u copy and paste url i think i am able to explain my problem please help me its urgent thanks
a very simple solution may be 1. create a session let say, user 2. when you are checking the username and password from database and if you find the record, Assign value of userid to the session 3. On each restricted page or on the master page place this code: if(Session["user"].ToString() == "") { Response.Redirect("default.aspx"); } 4. On logout assign blank to this session and remove it... Hopefully it will solve your problem. Suman Singh
-
a very simple solution may be 1. create a session let say, user 2. when you are checking the username and password from database and if you find the record, Assign value of userid to the session 3. On each restricted page or on the master page place this code: if(Session["user"].ToString() == "") { Response.Redirect("default.aspx"); } 4. On logout assign blank to this session and remove it... Hopefully it will solve your problem. Suman Singh
I think it may help u. write the below code in default page in pageload Session.Remove(Session.SessionID); FormsAuthentication.SignOut(); Context.User = null; Response.Redirect("./.../Login.aspx"); definitely it will help u...already i checked this... rgds, cnr369.
-
a very simple solution may be 1. create a session let say, user 2. when you are checking the username and password from database and if you find the record, Assign value of userid to the session 3. On each restricted page or on the master page place this code: if(Session["user"].ToString() == "") { Response.Redirect("default.aspx"); } 4. On logout assign blank to this session and remove it... Hopefully it will solve your problem. Suman Singh