Click here to Skip to main content
15,909,498 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Memory allocation / GC issues??? Pin
Scott Dorman26-Aug-07 3:09
professionalScott Dorman26-Aug-07 3:09 
AnswerRe: Memory allocation / GC issues??? Pin
Vaibhav Sharma26-Aug-07 16:54
Vaibhav Sharma26-Aug-07 16:54 
GeneralRe: Memory allocation / GC issues??? Pin
Xpnctoc26-Aug-07 17:24
Xpnctoc26-Aug-07 17:24 
QuestionEmbedded resources -- pros & cons Pin
Xpnctoc24-Aug-07 4:16
Xpnctoc24-Aug-07 4:16 
AnswerRe: Embedded resources -- pros & cons Pin
Luc Pattyn24-Aug-07 4:54
sitebuilderLuc Pattyn24-Aug-07 4:54 
GeneralRe: Embedded resources -- pros & cons Pin
Xpnctoc24-Aug-07 8:43
Xpnctoc24-Aug-07 8:43 
GeneralRe: Embedded resources -- pros & cons Pin
Luc Pattyn24-Aug-07 12:48
sitebuilderLuc Pattyn24-Aug-07 12:48 
Questionglobal.asax session help Pin
boyindie24-Aug-07 0:32
boyindie24-Aug-07 0:32 
Hi
i have a logging session which i use in the global.asax file which determines if the user is authenticated to the system

i ahve it working within reason

but if i try to access a page before logging in it will render page then will write my relogin page to the same page

I want it to redirect to this page relogin page if the user isn't authenticated on the system, so that nothing is showing by the browser

i have the following code

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
       ' Code that runs when a new session is started
       Session("loggedin") = "False"
       CheckLoggedIn()
       Session.Timeout = 20

   End Sub

   Sub Application_OnPostRequestHandlerExecute()
       CheckLoggedIn()
   End Sub

   'Check that the user is logged in.
   Sub CheckLoggedIn()
       'If the user is not logged in and you are not currently on the Login Page.
       If InStr(Request.RawUrl, "default.aspx") Or InStr(Request.RawUrl, "passwordrecover") And Session("loggedin") = "null" Then


       ElseIf Session("Loggedin") = "False" Then
           server.transfer("relogin.aspx")

       ElseIf Session("Loggedin") = "True" Then


       End If

   End Sub

   Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
       ' Code that runs when a session ends.
       ' Note: The Session_End event is raised only when the sessionstate mode
       ' is set to InProc in the Web.config file. If session mode is set to StateServer
       ' or SQLServer, the event is not raised.
       Server.Transfer("relogin.aspx")

   End Sub


I have also tryed using response.redirect, but this jus does the same in thing IE, and firefox will jus timeout everytime

any help appreciated

boyindie
AnswerRe: global.asax session help Pin
saniy24-Aug-07 3:25
saniy24-Aug-07 3:25 
GeneralRe: global.asax session help Pin
boyindie24-Aug-07 3:42
boyindie24-Aug-07 3:42 
Questionvc++.net Books Pin
trinadh_t23-Aug-07 19:40
trinadh_t23-Aug-07 19:40 
AnswerRe: vc++.net Books Pin
George L. Jackson24-Aug-07 15:21
George L. Jackson24-Aug-07 15:21 
JokeRe: vc++.net Books Pin
Paul Conrad27-Aug-07 16:11
professionalPaul Conrad27-Aug-07 16:11 
GeneralRe: vc++.net Books Pin
George L. Jackson28-Aug-07 0:06
George L. Jackson28-Aug-07 0:06 
QuestionHow to avoid the .net framework after the installer has been made? Pin
dhami_naresh23-Aug-07 16:24
dhami_naresh23-Aug-07 16:24 
AnswerRe: How to avoid the .net framework after the installer has been made? Pin
Mark Churchill23-Aug-07 20:20
Mark Churchill23-Aug-07 20:20 
GeneralRe: How to avoid the .net framework after the installer has been made? Pin
dhami_naresh24-Aug-07 6:03
dhami_naresh24-Aug-07 6:03 
GeneralRe: How to avoid the .net framework after the installer has been made? Pin
dhami_naresh26-Aug-07 8:05
dhami_naresh26-Aug-07 8:05 
GeneralRe: How to avoid the .net framework after the installer has been made? Pin
Scott Dorman26-Aug-07 10:47
professionalScott Dorman26-Aug-07 10:47 
AnswerRe: How to avoid the .net framework after the installer has been made? Pin
Vaibhav Sharma26-Aug-07 17:09
Vaibhav Sharma26-Aug-07 17:09 
QuestionMassive WPF animation problems under windows vista Pin
CongoFX23-Aug-07 5:55
CongoFX23-Aug-07 5:55 
AnswerRe: Massive WPF animation problems under windows vista Pin
CongoFX24-Aug-07 6:54
CongoFX24-Aug-07 6:54 
Questioninstaller class Pin
balakpn23-Aug-07 2:49
balakpn23-Aug-07 2:49 
AnswerRe: installer class Pin
Colin Angus Mackay23-Aug-07 3:18
Colin Angus Mackay23-Aug-07 3:18 
GeneralRe: installer class Pin
balakpn23-Aug-07 20:04
balakpn23-Aug-07 20:04 

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.