Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: using sessions

  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using sessions

    Hi,

    Me again,

    i was wondering how to do the following

    strMaxent = Replace(Session("siteMaxent"), "'", "''")

    which collects the value from a login using sessions , further down the code I have

    postlimit=strMaxent

    It's not working, do i need to have "" I have tried loads but cant seem to get it to work.

    Chris.

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Try this:

    Code:
    response.write( "siteMaxent: " & session("siteMaxent"))
    response.flush
    If it comes up blank, then you will know why it isn't working.

    If it doesn't, then do the same response.write on your strMaxent.

    Lastly, why are you reassigning one variable multiple times? Can you not just use strMaxent instead of wasting the memory (although it is minuscule) by creating another variable with the same information.
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #3
    New Coder
    Join Date
    Aug 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thats what i decided to do easy LOL, should have though!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •