Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

If sessions are disabled in VBscript?

  • 19-01-2010 04:46PM
    #1
    Closed Accounts Posts: 18


    Hi,
    I'm building a social network and it's using sessions in VBscript. I'm just wondering if anyone can direct me to some sort of script that will test if the browser has sessions enabled or not and then send the user to a different page if the sessions are not enabled in the browser?

    Thank you for any help.


Comments

  • Moderators, Society & Culture Moderators Posts: 9,688 Mod ✭✭✭✭stevenmu


    IIRC sessions are a server side feature, but to work they require cookies to be enabled on the client side, so that's what you need to test for. There's lots of example out there if you search for "test browser cookie enabled" or something similar.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    You would be better off porting this to .NET being very honest.

    Session management is a bit easier in .NET with the different session providers to the point you can use databases to handle it and also viewstate if you dont want to use sessions at all..

    VBScript (and by extension Classic ASP) would be too weak for this...


Advertisement