Logout?
-
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working. But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
-
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working. But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
Write down your code in the master page itself...
Balasubramanian K.
-
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working. But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
Hi, you can write the logout functionality in master page itself ie; you can set the active filed to false is master page it self only...
-
Write down your code in the master page itself...
Balasubramanian K.
But in master page how can access the Session variables of all the forms? For example if Iam in Form5, and there is session variable of the user name,How can i fetch the value of session variable to set the active field false? Can u send the code?
-
Hi, you can write the logout functionality in master page itself ie; you can set the active filed to false is master page it self only...
But in master page how can access the Session variables of all the forms? For example if Iam in Form5, and there is session variable of the user name,How can i fetch the value of session variable to set the active field false?
-
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working. But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
Hi, you can use this code for clearing all the cookies and session variables... Response.Cookies.Remove(FormsAuthentication.FormsCookieName) Response.Cookies.Remove("YOUR COOKIE NAME")'for a particular cookie Session.RemoveAll() Session.Abandon()
-
Hi, you can use this code for clearing all the cookies and session variables... Response.Cookies.Remove(FormsAuthentication.FormsCookieName) Response.Cookies.Remove("YOUR COOKIE NAME")'for a particular cookie Session.RemoveAll() Session.Abandon()
I write this for erase the session variable. Its working. Session.Abandon(); But i want to set the active field in the database table to false. How it is possible?
-
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working. But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
Hi Karthick, keep the user info ie; userid etc in session variable,by accessing that userinfo in master page you can upadte your database for the particular user active field to false ...:thumbsup:
-
Hi Karthick, keep the user info ie; userid etc in session variable,by accessing that userinfo in master page you can upadte your database for the particular user active field to false ...:thumbsup:
Yes I keep the UserId in the Session variable of the Home page. But i cant access it from the Master page. Shall u tell me how u can access it? Pls..
-
Yes I keep the UserId in the Session variable of the Home page. But i cant access it from the Master page. Shall u tell me how u can access it? Pls..
Session variables are not bound to forms. They're Session variables. What's your question? You access the Session variable from anywhere in the project. Before you do
Session.Abandon();
use the UserId to set the login flag to false.
var question = (_2b || !(_2b));
-
Hi, I designed a login form in my website. when a user login active field in a table will be set to true. Its working. But i keep my logout control in the master page. So how to set active field to false when the user logout from any page. Can anyone give idea ?
Hi, assign session("your session variable name") to some object or some string after that by using that string value you can update the database... at last write session.abandon()
-
Hi, assign session("your session variable name") to some object or some string after that by using that string value you can update the database... at last write session.abandon()
S. I did it. Thanks...
-
But in master page how can access the Session variables of all the forms? For example if Iam in Form5, and there is session variable of the user name,How can i fetch the value of session variable to set the active field false?