Results 1 to 5 of 5

Thread: Session issues with asp

  1. #1
    Join Date
    May 2009
    Posts
    979

    Session issues with asp

    Hello. I have created a demo website in which a user will have to enter necessary stuffs or requirements to get the things posted. But the problem is that i am not able to create a session for the same. This means that whenever a user fills the parameter it should get redirected to the previous page after the time interval that has been assigned. But this does not happen in my case. Here's the session code in asp dynamic page for my site:

    <%
    request.querystring("fadd")
    Session("add")=fadd
    Session.Timeout = 500
    Response.Write(Session("fadd"))
    %>

    Please tell me the solution. Thank you.
    Last edited by Abhibhava; 04-12-2009 at 04:58 PM.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Session issues with asp

    Well you seem to be making a mistake in your coding. The value I mean the string value of the Add has to assigned to a variable. It has to a request form to the query. The code should be as follows:

    <%
    Dim strFAdd
    strFAdd = Request.QueryString("fadd")
    Session("fname") = strFadd
    Session.Timeout = 500
    Response.Write(Session("fadd"))
    %>

    Make the necessary changes in the code. This will then help you in making your session to work correct.

  3. #3
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Session issues with asp

    You should put or assign the Fadd into a variable so that it clears the session time value for the same. As your cod suggests that the line is not seteing fadd to a particaular variable and the desired query string code should have been as request.querystring("fadd"). fadd= request.querystring("fadd"). After doing it put your session here. That is Session(fadd)=fadd. This might work for you.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Session issues with asp

    There could be a issue with the browser as well. As Internet explorer 7 does not support the session with asp well. It has a bug that disallows them to perform the things as so. Try out in different browser may be then you might be able to get access or make the session to expire on the desired time interval. This is a kind of general problem which does happen with some browser. Do make the changes first to your code and then implement the thing.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: Session issues with asp

    The coding is par the mean that it not been assigned to a variable. But apart from the very thing you need to check out whether there is any sort if restrictions that is been disallowing the content to redirect to the desired page after the session is expired. Also if this is not the case then the possibility might be with the cookies. Delete the cookies as been filled it do not allow to write the files for execution.

Similar Threads

  1. Replies: 4
    Last Post: 17-01-2011, 11:14 AM
  2. Replies: 4
    Last Post: 24-12-2010, 07:58 AM
  3. Destroying Session in JSP
    By Level8 in forum Software Development
    Replies: 5
    Last Post: 11-03-2010, 04:40 PM
  4. Replies: 3
    Last Post: 31-07-2009, 01:09 PM
  5. Session Management in ASP.Net
    By NetWorm in forum Software Development
    Replies: 4
    Last Post: 18-03-2009, 02:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,577,643.19476 seconds with 17 queries