.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Need to identify if Remember Me was set or not

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :ASP.Net


I am using Form Based Authentication in my application. I am using standard method to create FormsAuthentication cookie using

FormsAuthentication.SetAuthCookie('username', boolRememberMe)

FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1,

                   username, DateTime.Now, DateTime.Now.AddMinutes(60),
                   remember, UserObject.Entity.UserName);

When clicked on particular URL, i need to pass whether user has checked REMEMBER ME CHECKBOX while logging in. How can I determine this using FOrmsAuthentication mechanism?

Any help would be much appreciated.

View Complete Post

More Related Resource Links

Concurrency: Tools And Techniques to Identify Concurrency Issues


Efficient parallel applications aren't born by merely running an old app on a parallel processor machine. Tuning needs to be done if you're to gain maximum benefit.

Rahul V. Patil and Boby George

MSDN Magazine June 2008

Debug Leaky Apps: Identify And Prevent Memory Leaks In Managed Code


When is the .NET Garbage Collector unable to reclaim memory? The answer might surprise you. Stay tuned.

James Kovacs

MSDN Magazine January 2007

Issue with Remember Me on User Login control


Hi everyone,

     I hope you can help me, I tried Google, but none of the solutions worked. Using VB.net and Membership, I have a login control in my master page with a remember me check box. When I check this box and login, some pages indicate that I am not logged in. If I go to another page, it will then indicate that I am still logged in. I have isolated one page that always indicates I am not logged in the first time I visit it, but if log in a second time and then go to it, it will finally recognize me as a user that is properly logged in. 

Some pages that this occurs on is in the top level, some pages are in a sub folder.

My MasterPage has the following Form Code:

<body bgcolor="#E0ECF9" topmargin="0" leftmargin="0">

    <form id="form1" runat="server">

My Aspx file has a troubleshooting label, several Gridviews and several DetailViews:

    <asp:Label ID="lblErRep" runat="server" Text=""></asp:Label>

My aspx.vb file has 1 line of code (Protec

Custom "Remember me next time"

Hello everybody. I am learning the login control. ASP.NET Videos are really helpful. So what I did so far I am showing you : This is the login div of MasterPage.master : <div id="login"> <p style="padding-top: 30px; text-align:center"> <asp:LoginView ID="MasterLoginView" runat="server"> <LoggedInTemplate> Welcome <asp:LoginName ID="MasterLoginName" runat="server" /> </LoggedInTemplate> <AnonymousTemplate> Welcome Guest </AnonymousTemplate> </asp:LoginView> </p> <p style="text-align: center"> [ <asp:LoginStatus ID="MasterLoginStatus" runat="server" LogoutAction="Redirect" LogoutPageUrl="~/LoggedOut.aspx" /> ]   </p> </div> This is the Login.aspx :<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Title="Untitled Page" %><asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server"><h1>Please Login</h1><div style="width: 245px; height: 100px; padding: 20px 20px

"Remember Me Next Time" under Login Control is not working

I am using VS 2005 and created a Login control. Login control provides "Remember Me Next Time" check box, I check this box but it does not remember next time. I have following entry in the web.config file <authentication mode="Forms"> <forms name=".MyCookies" loginUrl="login.aspx" protection="All" timeout="5000000" cookieless="UseCookies" slidingExpiration="true" path="\"></forms> </authentication> What am I missing? Thanks

Remember me and Remember my password?

Hello everybody.I am new in ASP.NET. I have few questions :In login control of asp.net there is a remember me checkbox. What is the functionality of this checkbox? What it does basically? Is there any way to put space between checkbox and its associated label?I saw Windows Live login control has an extra checkbox Remember my password? How can we achieve this feature in our custom login control?I have read many tutorials but I can not able to solve my queries. Any information regarding these will be very helpful to me.Thank you.

How to identify new row in repeating table and repeating section of browser enable infopath form

Hello All,   I have Exp form that contain repeating table as well as repeating section. When i click insert new item it inset new row but i didn't got identification of that row. Is there is way to get identification of each row in repeating table as well as section.  Please help on this.  Thank you.

Remember password is not remember on ever time

Hi,  I am using sql server 2008 client while connecting to server i have given the correct password and click on remember password option.But next time i click on connect with same user it throws error like 'login failed for the user.'.  Any one know the resason please let me know. Thanks in anticipation.

Need to Identify Mobile number or IMEI or any unique identification.

Hi There, I am looking to find out a way to uniquely identify a mobile through ASP.NET. Like mobile no. or IMEI or any other unique Identifier. Is it at all possible? Looking for some help. Thanks Bhaskar

Can anybody Identify whats the error in this update query ??

I am getting error as Invalid Column name 'JAVA' when i am havin a value JAVA in txtExamName text box.In my database ExamName field is having a data type nvarchar(25)."UPDATE Exam SET ExamName=' " + txtExamName.Text + " ',SubjectId=" + SubId + ",StartDate=' " + txtDate.Text + " ',StartTime=' " + txtHour.Text + ":" + txtMinutes.Text + " ',EndTime=' " + txtHour0.Text + ":" + txtMinutes0.Text + " ',ExamDescription=' " + txtDescri.Text + " ',TotalNoOfQuestion=" + txtQue.Text + ",MarkofCorrectAns=" + txtPoint.Text + ",MarkofWrongAns=" + txtExamName.Text + " WHERE ExamId=" + Convert.ToInt32(Session["ExamId"])

"Remember me" cookie not saved properly


Hello, everybody.
I have several sites that are diffierentiated like below:
The main site( site A ) is like this: www.ab.siteName.cd.domainName.com
Another site ( site B ) is like this: www.ab.siteName.cd.domainName.com/br

How can I set Cookies to identify that machine



I tried to set a Cookies by Response.Chookies("chookie1") into a user's machine and found difficult to get the Cookies by Request.Chookies("chookie1"). I think that is because the person used various cs(User-Agent) (browser names?). Here are some of them:


In such case, how can I set Cookies to identify that machine?

Thanks a lot for any suggestions.

windows 7/vista unable to remember

I don't know if this is the right place for the question. It's related to sharepoint.. but the problem (i think) lies in the client side.
We've got a problem with remembering credentials on a network drive to a sharepoint portal. A client vista or W7 computer maps z: to a sharepoint portal for easy access to a document library. Everything works, but after every reboot the client has to reenter the password. The client os displays the password in the vault. But is doesn't remember the password for the mapping. adding ip, dns name etc to trusted or intranet zones didn't work. setting the security in the GPO Network security: LAN Manager authentication level to "Send LM & NTLM - use NTLMv2 session security if negotiated" didn't work either.

Is there something I'm missing here?

How can we identify data is integer or not


Can we  identify if a data value is an integer using query.

How to identify a system database



please can you help me how to 100% identify system database by T-SQL? Please not by the name. I think, there has to be any official way. Thanks.

Michal Neuwirth | personal developer blog (CZ) | blog on Kentico Devnet(EN)

Identify First or Second Time Visit to web site



I work in a multi server , multi webfarm environment (without sessions).

We need to be able to identfy if a customer has arrived here for the first or has been before (even though they have not logged in)Not only will we change the text of our salutations depeding on this state but we will also use it in other busness logic


I can check for the existance of a cookie when they fire the Session_onStart event  but I would have to write a cookie out to show they had previously visited for the next time the customer came to call.

If I wrote the cookie out in the Session_onStart then somehow I would have to tell the website that this was a first time visit.

Also as this is a stateless webfarm - the next server may be different from the previous one which would fire a new Session_onStart event in its own right - which would see the cookie and assume it was not my first visit, even though it was my first visit on a different web page of the web site.

I dont want to write it out and say if its within X minutes of the cookie creation time you are still in your first visit as that x minutes wouldnt work 100% of the time

If I dont write the cookie out on Session_onStart then when could I write it out?

I am struggling a little on this so any help would be appreciated.

Identify which button has been clicked


I have a browser enabled infopath form. I have 3 buttons in that form and all of them have submit functionality so when button is clicked the form submit event is fired.

Now the problem is that i want to identify which button was clicked in form submit event

For information, I am submitting infopath form programmatically, i have written code to submit form in form submit event

Does anyone has idea to identify which button was clicked?

Thanks in advance,



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend