[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Session Data Lost During Forms Authentication

Doug Thews

3/27/2002 8:46:00 PM

I'm testing out some forms-based authentication code. In my Login page, I
save a setting to a session variable before I do a
MobileFormsAuthentication.RedirectFromLogin page.

At that point, the destination page comes up, but all session information is
lost. If I replace the 'redirect' call with a me.MobileRedirectToPage call
(and provide a specific target - not what I want to do in the end), the
session information now becomes available in the target page.

Any thoughts?

--
Doug Thews
Director, Software Development
divine Managed Services


3 Answers

(Shanku Niyogi (MS))

4/9/2002 10:53:00 PM

0

Doug Thews

4/11/2002 1:14:00 AM

0

#1. I do have cookieless sessions enabled.
#2. All pages are in the same root.
#3. You don't specify a page in the redirect. The method is:
MobileFormsAuthentication.RedirectFromloginPage(username, false). This
method will redirect to the page that required forms authentication.

--
Doug Thews
Director, Software Development


"Shanku Niyogi (MS)" <shankun@online.microsoft.com> wrote in message
news:#3FPZiA4BHA.2180@cpmsftngxa07...
> A few questions to clarify the problem:
>
> Are you redirecting to a URL in the same application (same VROOT), or
> another one?
> Is the URL relative or absolute?
> Do you have cookieless sessions enabled?
>
> Thanks,
> Shanku
>
>
>
> ----
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Please do not send email directly to this alias. This alias is for
> newsgroup purposes only.
>
>
>
>
>
> --------------------
> From: "Doug Thews" <dthews@nospam.datareturn.com>
> Subject: Session Data Lost During Forms Authentication
> Date: Wed, 27 Mar 2002 13:46:29 -0600
> Lines: 17
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
> Message-ID: <#DtEpfc1BHA.2308@tkmsftngp04>
> Newsgroups: microsoft.public.dotnet.framework.aspnet.mobile
> NNTP-Posting-Host: port-64-1957452-zzt0prespect.devices.datareturn.net
> 64.29.222.76
> Path: cpmsftngxa08!cpmsftngxa07!tkmsftngp01!tkmsftngp04
> Xref: cpmsftngxa08 microsoft.public.dotnet.framework.aspnet.mobile:3345
> X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.mobile
>
> I'm testing out some forms-based authentication code. In my Login page, I
> save a setting to a session variable before I do a
> MobileFormsAuthentication.RedirectFromLogin page.
>
> At that point, the destination page comes up, but all session information
is
> lost. If I replace the 'redirect' call with a me.MobileRedirectToPage
call
> (and provide a specific target - not what I want to do in the end), the
> session information now becomes available in the target page.
>
> Any thoughts?
>
> --
> Doug Thews
> Director, Software Development
> divine Managed Services
>
>
>


Doug Thews

4/14/2002 7:28:00 PM

0

Turns out this is a problem with the MMIT and the RedirectFromLoginPage
method for the MobileFormsAuthentication class that will be fixed in the
next release of MMIT.

--
Doug Thews
Director, Software Development
D&D Consulting Services


"Shanku Niyogi (MS)" <shankun@online.microsoft.com> wrote in message
news:#3FPZiA4BHA.2180@cpmsftngxa07...
> A few questions to clarify the problem:
>
> Are you redirecting to a URL in the same application (same VROOT), or
> another one?
> Is the URL relative or absolute?
> Do you have cookieless sessions enabled?
>
> Thanks,
> Shanku
>
>
>
> ----
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Please do not send email directly to this alias. This alias is for
> newsgroup purposes only.
>
>
>
>
>
> --------------------
> From: "Doug Thews" <dthews@nospam.datareturn.com>
> Subject: Session Data Lost During Forms Authentication
> Date: Wed, 27 Mar 2002 13:46:29 -0600
> Lines: 17
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
> Message-ID: <#DtEpfc1BHA.2308@tkmsftngp04>
> Newsgroups: microsoft.public.dotnet.framework.aspnet.mobile
> NNTP-Posting-Host: port-64-1957452-zzt0prespect.devices.datareturn.net
> 64.29.222.76
> Path: cpmsftngxa08!cpmsftngxa07!tkmsftngp01!tkmsftngp04
> Xref: cpmsftngxa08 microsoft.public.dotnet.framework.aspnet.mobile:3345
> X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.mobile
>
> I'm testing out some forms-based authentication code. In my Login page, I
> save a setting to a session variable before I do a
> MobileFormsAuthentication.RedirectFromLogin page.
>
> At that point, the destination page comes up, but all session information
is
> lost. If I replace the 'redirect' call with a me.MobileRedirectToPage
call
> (and provide a specific target - not what I want to do in the end), the
> session information now becomes available in the target page.
>
> Any thoughts?
>
> --
> Doug Thews
> Director, Software Development
> divine Managed Services
>
>
>