Click here to Skip to main content
15,890,506 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: FormsAuthentication and Session timeout problem. Pin
Mark J. Miller2-Apr-08 10:50
Mark J. Miller2-Apr-08 10:50 
ESTAN wrote:
FormsAuthentication.RedirectFromLoginPage(tbxEmail.Text.Trim, True)
Response.Redirect("Home.aspx")


Your call to Response.Redirect doesn't get called because you're calling RedirectFromLoginPage before it. Do something like this:

<br />
<forms .... other attributes .... defaultUrl="~/BackOffice/Home.aspx" cookieless="UseCookies" /><br />


And your code can just be:

<br />
FormsAuthentication.RedirectFromLoginPage(....)<br />


You don't need to do anything special to use cookies. Calling RedirectFromLoginPage will set the user's cookie and the FormsAuthentication module will take care of managing the session ticket in the cookie.

And if you're session is still timing out, set your timeout to something more than 1 minute. 30 minutes is the default. 1 minute will never work in a real application, it would only be valid for testing what happens when the session times out. Here's the documentation for the <forms> element: http://msdn2.microsoft.com/en-us/library/1d3t3c61.aspx[^]


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 
Generalsession problem Pin
Soumini Ramakrishnan2-Apr-08 1:39
Soumini Ramakrishnan2-Apr-08 1:39 

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.