Click here to Skip to main content
15,927,918 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Clearing javascript cache in IE7 Pin
Meg W7-Apr-08 8:03
Meg W7-Apr-08 8:03 
Questionthumbnail picture for shop catalouge [modified] Pin
Saba022-Apr-08 9:45
Saba022-Apr-08 9:45 
GeneralRe: thumbnail picture for shop catalouge Pin
Mark J. Miller2-Apr-08 10:01
Mark J. Miller2-Apr-08 10:01 
GeneralRe: thumbnail picture for shop catalouge Pin
Saba022-Apr-08 10:35
Saba022-Apr-08 10:35 
GeneralRequestSoapContext not found in proxy Pin
mpavas2-Apr-08 7:14
mpavas2-Apr-08 7:14 
QuestionHow do you Authenticate a User saved on SQL Server 2005?? Please Help. Pin
Etienne2-Apr-08 6:34
Etienne2-Apr-08 6:34 
GeneralRe: How do you Authenticate a User saved on SQL Server 2005?? Please Help. Pin
Mark J. Miller2-Apr-08 10:34
Mark J. Miller2-Apr-08 10:34 
GeneralFormsAuthentication and Session timeout problem. Pin
ESTAN2-Apr-08 6:28
ESTAN2-Apr-08 6:28 
Hi, I kind figure out the problem why the FormsAuthentication cookie can't be set, because just after the authentication it brings me back to the same page with the message that my session has been expired.

Lets see my webconfig.

<system.web>
    <authentication mode="Forms">
      <forms path="BackOffice" loginurl="BackOffice/Default.aspx?state=Timeout" protection="All" timeout="1">
      </forms>
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
  </system.web>


The state=Timeout is caught to show an alert saying that the session has been timed out

The code that i use just after a successful authentication:

'FormsAuthentication.SetAuthCookie(tbxEmail.Text.Trim, False)
FormsAuthentication.RedirectFromLoginPage(tbxEmail.Text.Trim, True)
Response.Redirect("Home.aspx")

After a successfull authentication I don't get directed to the Home.aspx page.

When i set the following in the webconfig:
<forms path="BackOffice" loginUrl="BackOffice/Default.aspx?state=Timeout" protection="All" timeout="1" cookieless="UseUri">

but than my string changes to something like:
http://localhost:4190/TEST/(F(DkeaiAh5OWpUmiVajjisadVvodQMLp1lpg4yu8pQK_PlxqApl5udnh7iAx1Yi8KhNbLIx6pQkytYVuhnwCj7GmfkbmpD-2IxXSxyilQM5HDrQ9-byppwLdbd_uBxEeSNdo5UNcPd9nxQxW0ZU3o3Sw2))/BackOffice/Home.aspx

What I am doing wrong? How i can use normal cookies zo i don't need to have the UseUri flag?

Thanks
GeneralRe: FormsAuthentication and Session timeout problem. Pin
Mark J. Miller2-Apr-08 10:50
Mark J. Miller2-Apr-08 10:50 
GeneralRe: FormsAuthentication and Session timeout problem. Pin
ESTAN3-Apr-08 22:49
ESTAN3-Apr-08 22:49 
GeneralRe: FormsAuthentication and Session timeout problem. Pin
Mark J. Miller4-Apr-08 4:34
Mark J. Miller4-Apr-08 4:34 
GeneralRe: FormsAuthentication and Session timeout problem. Pin
ESTAN8-Apr-08 2:20
ESTAN8-Apr-08 2:20 
Generalto insert a new record from gridview control Pin
sudhadotnet2-Apr-08 4:37
sudhadotnet2-Apr-08 4:37 
GeneralRe: to insert a new record from gridview control Pin
led mike2-Apr-08 6:50
led mike2-Apr-08 6:50 
Generaliframe src from code Pin
saud_a_k2-Apr-08 3:46
saud_a_k2-Apr-08 3:46 
GeneralRe: iframe src from code Pin
eyeseetee2-Apr-08 4:44
eyeseetee2-Apr-08 4:44 
GeneralRe: iframe src from code Pin
Krishnraj2-Apr-08 19:41
Krishnraj2-Apr-08 19:41 
QuestionHow to display data in content place holder dynamically Pin
psspl2-Apr-08 2:51
psspl2-Apr-08 2:51 
AnswerRe: How to display data in content place holder dynamically Pin
Matthew Ellis2-Apr-08 3:38
Matthew Ellis2-Apr-08 3:38 
AnswerRe: How to display data in content place holder dynamically Pin
eyeseetee2-Apr-08 3:46
eyeseetee2-Apr-08 3:46 
GeneralA potentially dangerous Request.Form value was detected from the client [modified] Pin
Bluebamboo2-Apr-08 1:57
Bluebamboo2-Apr-08 1:57 
GeneralRe: A potentially dangerous Request.Form value was detected from the client Pin
N a v a n e e t h2-Apr-08 3:20
N a v a n e e t h2-Apr-08 3:20 
GeneralRe: A potentially dangerous Request.Form value was detected from the client Pin
Bluebamboo2-Apr-08 4:29
Bluebamboo2-Apr-08 4:29 
GeneralRe: A potentially dangerous Request.Form value was detected from the client Pin
N a v a n e e t h2-Apr-08 4:34
N a v a n e e t h2-Apr-08 4:34 
GeneralRe: A potentially dangerous Request.Form value was detected from the client Pin
Bluebamboo3-Apr-08 4:38
Bluebamboo3-Apr-08 4:38 

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.