Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - what is strQsSID1 & strQsSID2 ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

what is strQsSID1 & strQsSID2 ???

 Post Reply Post Reply Page  12>
Author
miladanimator View Drop Down
Groupie
Groupie
Avatar

Joined: 24 July 2005
Location: United States
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote miladanimator Quote  Post ReplyReply Direct Link To This Post Topic: what is strQsSID1 & strQsSID2 ???
    Posted: 10 April 2006 at 6:58pm
what is <%=strQsSID1%> and <%=strQsSID2%> that add in link address in version 8.0 ?

and what is difference
Between this codes for link:

<a href="active_users.asp">

<a href="active_users.asp<% = strQsSID1 %>">

<a href="active_users.asp<% = strQsSID2 %>">

?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 12:06pm
These are used to append a session ID to URL's if the users browser doesn't support cookies.

strQsSID1 is with a question mark eg. ?SID=xxxx
strQsSID2 is with an & eg. &SID=xxxx

So the first one is used for links with no querystring already, and teh second to append to a link that already has a querystring.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 4:53pm
Does this mean I have to change all my links to WWF to include the session ID?  Will it also mean that if I don't want WWF to forget a person is logged into the forum when they visit the rest of my website, I will not have to support a session ID on all my pages as well?!?!?!
 
Is there a way to require cookies?  I do not want people using my website without cookies.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 5:07pm
The forum primarily looks for cookies, and only uses the session ID appended to URL's in those rare cases where cookies fail.

This does mean that for those that can't use cookies if they navigate away from the forum they will need to log back in when they return, but as most people do have cookies and usually people stay in the forum till they decide they have enough and away for a good few hours, that this will not be an issue.

By the way the same system is in use on this forum, if you disable cookies in your browser and look at the URL when moving around the forum you will see how it works.

The reason why it was bought in was the massive amount of web masters who complained that the odd user couldn't login due to cookie issues with there browsers.

Just do a search in version 7 forum for cookies, you will see a stupid amount of posts on cookie issues, it drove me up the wall.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 5:46pm

Currently I include common.asp on all my webpages to detect if a user is logged in or not.  Will this automatically take advantage of the session ID thing?

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 5:57pm
Version 8 uses sessions to track users and the cookie detection is part of the session tracking function.

If you look in the common.asp file of version 8 you will find it very empty compared to older versions as the code has been modulised into functions that are called in the common.asp file.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 6:15pm

All I need is for the variables to be set saying that a user is logged in, and what their userID is and groupID is, etc. and I'll be fine.

I basically see if the logged in user ID <> 2 to determine if someone is logged in, and then check the logged in user's group number and if necesary userID number if I want to set specific permissions for a page.  I then use if then statements to determine what people can see on the page, sometimes displaying different things based on whether you are logged in or not or if you are the correct group or not.
 
As long as common.asp (or its includes) still sets those variables, then I am fine.  Otherwise I may have a lot of rewriting to do.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 6:39pm
Yes it does it's not chnaged that much.

GroupID is still used as well as the old login cookie.

The session system is used more to track users and store session data, such as logged in user codes (as it's more secure).

The other advantage of doing it like this is that you can set it to use the database to store the session data instead of an application array, this is not as good for performance but allows load balanced web servers, server farms, and web gardens to be used.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.