Click here to Skip to main content
16,004,969 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Multiple inserts into database with business layer Pin
wk63326-Jul-07 8:08
wk63326-Jul-07 8:08 
Questionsending email with confirmation link Pin
hurrem26-Jul-07 7:42
hurrem26-Jul-07 7:42 
AnswerRe: sending email with confirmation link Pin
wk63326-Jul-07 7:54
wk63326-Jul-07 7:54 
QuestionHierarchial TreeView Pin
Krishnamenon26-Jul-07 6:41
Krishnamenon26-Jul-07 6:41 
AnswerRe: Hierarchial TreeView Pin
wk63326-Jul-07 7:45
wk63326-Jul-07 7:45 
GeneralRe: Hierarchial TreeView Pin
Krishnamenon26-Jul-07 9:24
Krishnamenon26-Jul-07 9:24 
GeneralRe: Hierarchial TreeView Pin
Christian Graus26-Jul-07 18:51
protectorChristian Graus26-Jul-07 18:51 
Questionsession variable preventing image retrieval Pin
boyindie26-Jul-07 6:34
boyindie26-Jul-07 6:34 
Hi
I have been trying for ages to fill a table with images which have been returned from a database

I removed my session that deals with log in status of the user, but when i removed it allowed all my images to be accessed and displayed in the table

When the user is logged in the session variable is set to yes and it will timeout within 30 mins of inactivity

can anyone tell me of a workaround so that i can still have this session and allow access to my images from this table?

my global.asax file has the following code

<%@ Application Language="VB" %><br />
<br />
<script runat="server"><br />
<br />
   <br />
    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)<br />
        ' Code that runs on application startup<br />
    End Sub<br />
    <br />
    Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)<br />
        ' Code that runs on application shutdown<br />
    End Sub<br />
    <br />
        <br />
    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)<br />
        ' Code that runs when an unhandled error occurs<br />
    End Sub<br />
<br />
    Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)<br />
        ' Code that runs when a new session is started<br />
        Session("Loggedin") = ""<br />
        Session.Timeout = 30<br />
        CheckLoggedIn()<br />
    End Sub<br />
    <br />
    ' Called when the request has been process by the Request Handler and <br />
    ' HttpSessionState is available [This is the key piece of code that forces <br />
    ' the user is login check with each page request]<br />
    Sub Application_OnPostRequestHandlerExecute()<br />
        CheckLoggedIn()<br />
    End Sub<br />
    <br />
    'Check that the user is logged in.<br />
    Sub CheckLoggedIn()<br />
        'If the user is not logged in and you are not currently on the Login Page.<br />
        If Session("LoggedIn") = "" And InStr(Request.RawUrl, "userLogin.aspx") = 0 Then<br />
            Server.Transfer("relogin.aspx?ReturnUrl=adminhome.aspx")<br />
        End If<br />
    End Sub<br />
    <br />
    <br />
<br />
    Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)<br />
        ' Code that runs when a session ends. <br />
        ' Note: The Session_End event is raised only when the sessionstate mode<br />
        ' is set to InProc in the Web.config file. If session mode is set to StateServer <br />
        ' or SQLServer, the event is not raised.<br />
        <br />
    End Sub<br />
       <br />
</script>

QuestionExpect IE 6.0 other browsers do not show web pages correctly [modified] Pin
devbrat26-Jul-07 6:04
devbrat26-Jul-07 6:04 
AnswerRe: Expect IE 6.0 other browsers do not show web pages correctly Pin
wk63326-Jul-07 6:11
wk63326-Jul-07 6:11 
QuestionAny one know about session? Pin
vurugonda26-Jul-07 5:12
vurugonda26-Jul-07 5:12 
AnswerRe: Any one know about session? Pin
wk63326-Jul-07 6:14
wk63326-Jul-07 6:14 
GeneralRe: Any one know about session? Pin
vurugonda26-Jul-07 6:21
vurugonda26-Jul-07 6:21 
GeneralRe: Any one know about session? Pin
wk63326-Jul-07 6:55
wk63326-Jul-07 6:55 
GeneralRe: Any one know about session? Pin
vurugonda27-Jul-07 5:13
vurugonda27-Jul-07 5:13 
GeneralRe: Any one know about session? Pin
wk63327-Jul-07 5:30
wk63327-Jul-07 5:30 
GeneralRe: Any one know about session? Pin
vurugonda27-Jul-07 5:50
vurugonda27-Jul-07 5:50 
GeneralRe: Any one know about session? Pin
wk63327-Jul-07 6:12
wk63327-Jul-07 6:12 
GeneralHow to combine two applications in one application Pin
vurugonda9-Aug-07 17:47
vurugonda9-Aug-07 17:47 
GeneralRe: How to combine two applications in one application Pin
wk63310-Aug-07 6:15
wk63310-Aug-07 6:15 
QuestionTotal string length Pin
VK-Cadec26-Jul-07 5:06
VK-Cadec26-Jul-07 5:06 
AnswerRe: Total string length Pin
kubben26-Jul-07 5:37
kubben26-Jul-07 5:37 
Questiongetting dynamically created control's value as null Pin
imranafsari26-Jul-07 5:05
imranafsari26-Jul-07 5:05 
AnswerRe: getting dynamically created control's value as null Pin
Tarakeshwar Reddy26-Jul-07 5:15
professionalTarakeshwar Reddy26-Jul-07 5:15 
GeneralRe: getting dynamically created control's value as null Pin
imranafsari26-Jul-07 5:35
imranafsari26-Jul-07 5:35 

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.