Click here to Skip to main content
15,892,517 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCom Port Problem , Modem ,Asp.Net ,Real IP Address. Pin
ketan d patel10-Apr-09 20:14
ketan d patel10-Apr-09 20:14 
AnswerRe: Com Port Problem , Modem ,Asp.Net ,Real IP Address. Pin
Zia Ul Haq Soofi11-Apr-09 1:15
Zia Ul Haq Soofi11-Apr-09 1:15 
GeneralRe: Com Port Problem , Modem ,Asp.Net ,Real IP Address. Pin
ketan d patel11-Apr-09 2:27
ketan d patel11-Apr-09 2:27 
QuestionVisual Studio 2008 Professional Office Components Pin
Distind10-Apr-09 10:11
Distind10-Apr-09 10:11 
QuestionPaging without Javascript Pin
Charmy310-Apr-09 7:28
Charmy310-Apr-09 7:28 
QuestionHELP - Forms Auth Cookie persists after closing browser... Pin
Grapes-R-Fun10-Apr-09 5:45
Grapes-R-Fun10-Apr-09 5:45 
QuestionRe: HELP - Forms Auth Cookie persists after closing browser... Pin
led mike10-Apr-09 7:54
led mike10-Apr-09 7:54 
AnswerRe: HELP - Forms Auth Cookie persists after closing browser... Pin
Grapes-R-Fun10-Apr-09 9:55
Grapes-R-Fun10-Apr-09 9:55 
Mike, I don't know what's causing it to behaive this way... I'm running out of options!

This is my code:
if (_IsAuthenticated)
{
      FormsAuthenticationTicket _ticket = new FormsAuthenticationTicket(1,
                    this.userHandletbx.Text + "_" + DateTime.Now.ToString(),
                    DateTime.Now,
                    DateTime.Now.AddMinutes(30),
                    false, // Value of IsPersistent property
                    String.Empty,
                    FormsAuthentication.FormsCookiePath);

      string _encryptedTicket = FormsAuthentication.Encrypt(_ticket);

      HttpCookie _authCookie = new HttpCookie(
                    FormsAuthentication.FormsCookieName,
                    _encryptedTicket);

      _authCookie.Secure = false;

      Response.Cookies.Add(_authCookie);

      FormsAuthentication.RedirectFromLoginPage(this.userHandletbx.Text, true);

}


And this is my web.config:
<authentication mode="Forms">
   <forms loginUrl="Login.aspx" 
        name=".ASPXFORMSAUTH" 
        protection="All" 
        path="/"
        timeout="40"
        defaultUrl="Home.aspx"
        enableCrossAppRedirects="false"
        slidingExpiration="true">
          
    </forms>
</authentication>


...and no matter where I stick
FormsAuthentication.SignOut()
it doesn't kill that darn cookie!

Am I missing something? Is this a blonde moment I'm having? Poke tongue | ;-P

Thanks for your help, by the way.

Green Grape

GeneralRe: HELP - Forms Auth Cookie persists after closing browser... Pin
led mike10-Apr-09 10:05
led mike10-Apr-09 10:05 
QuestionHow to Store SWF files to SQL Server 2005 from C# WinForm Application and retrieve it and display in ASP.NET Web Page Pin
AARIFBANGI10-Apr-09 5:08
AARIFBANGI10-Apr-09 5:08 
AnswerRe: How to Store SWF files to SQL Server 2005 from C# WinForm Application and retrieve it and display in ASP.NET Web Page Pin
Colin Angus Mackay10-Apr-09 5:09
Colin Angus Mackay10-Apr-09 5:09 
GeneralRe: How to Store SWF files to SQL Server 2005 from C# WinForm Application and retrieve it and display in ASP.NET Web Page Pin
AARIFBANGI10-Apr-09 5:25
AARIFBANGI10-Apr-09 5:25 
GeneralRe: How to Store SWF files to SQL Server 2005 from C# WinForm Application and retrieve it and display in ASP.NET Web Page Pin
Colin Angus Mackay10-Apr-09 5:30
Colin Angus Mackay10-Apr-09 5:30 
GeneralRe: How to Store SWF files to SQL Server 2005 from C# WinForm Application and retrieve it and display in ASP.NET Web Page Pin
AARIFBANGI10-Apr-09 5:36
AARIFBANGI10-Apr-09 5:36 
GeneralRe: How to Store SWF files to SQL Server 2005 from C# WinForm Application and retrieve it and display in ASP.NET Web Page Pin
Colin Angus Mackay10-Apr-09 5:48
Colin Angus Mackay10-Apr-09 5:48 
QuestionExport a sheet of excel to a table Sql-Server Pin
Sandraa10-Apr-09 4:57
Sandraa10-Apr-09 4:57 
QuestionWhy Dim hpl As HyperLink = CType(acc.FindControl("hpl"), HyperLink) didn't find my control inAccordion? Pin
Saba0210-Apr-09 4:03
Saba0210-Apr-09 4:03 
AnswerRe: Why Dim hpl As HyperLink = CType(acc.FindControl("hpl"), HyperLink) didn't find my control inAccordion? Pin
Zia Ul Haq Soofi10-Apr-09 18:52
Zia Ul Haq Soofi10-Apr-09 18:52 
GeneralRe: Why Dim hpl As HyperLink = CType(acc.FindControl("hpl"), HyperLink) didn't find my control inAccordion? Pin
Saba0210-Apr-09 22:33
Saba0210-Apr-09 22:33 
GeneralRe: Why Dim hpl As HyperLink = CType(acc.FindControl("hpl"), HyperLink) didn't find my control inAccordion? Pin
Zia Ul Haq Soofi11-Apr-09 0:31
Zia Ul Haq Soofi11-Apr-09 0:31 
QuestionProblem...Problem.....???? Pin
ven32110-Apr-09 4:01
ven32110-Apr-09 4:01 
QuestionC# gridview edit/delete not working Pin
Janus32110-Apr-09 3:37
Janus32110-Apr-09 3:37 
AnswerRe: C# gridview edit/delete not working Pin
Zia Ul Haq Soofi10-Apr-09 18:59
Zia Ul Haq Soofi10-Apr-09 18:59 
GeneralRe: C# gridview edit/delete not working Pin
maheshsahini10-Apr-09 22:53
maheshsahini10-Apr-09 22:53 
QuestionPostedFile Is Nothing on DataGrid File Upload Pin
dstrube10-Apr-09 3:13
dstrube10-Apr-09 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.