Print Page | Close Window

what is strQsSID1 & strQsSID2 ???

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19232
Printed Date: 12 April 2026 at 11:09am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: what is strQsSID1 & strQsSID2 ???
Posted By: miladanimator
Subject: what is strQsSID1 & strQsSID2 ???
Date 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 %>">

?



Replies:
Posted By: WebWiz-Bruce
Date 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.


Posted By: wistex
Date 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.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: WebWiz-Bruce
Date 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.


Posted By: wistex
Date 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?



-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: WebWiz-Bruce
Date 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.


Posted By: wistex
Date 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.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: WebWiz-Bruce
Date 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.


Posted By: miladanimator
Date Posted: 12 April 2006 at 5:44am
-borg- I want to link to forum pages from a new .asp page ...

in which link of pages I should use strQsSID1 & strQsSID2 ?


Posted By: WebWiz-Bruce
Date Posted: 12 April 2006 at 11:18am
You don't need to use them to link to the forum, it's an internal way of tracking users within the forum system if cookies fail to work on their browser.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net