| Author |
Topic Search Topic Options
|
NISSANGTIR
Groupie
Joined: 20 April 2004
Location: United Kingdom
Status: Offline
Points: 85
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 May 2004 at 6:44am |
OK - I am now TOTALLY at the end of my tether (if thats how you spell it) 
I have uploaded a fresh copy of WWF onto the non-secure side http:// folder and STILL I keep getting the insufficent permissions page.
Edited by NISSANGTIR
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 May 2004 at 7:10am |
|
I had a look and it it trying to get through.
But it does look like a cookie issue.
Looking at my cookie cach after tryiny to login, for some reason the path for the cookie is being set as:-
/usautomotive.co.uk_ssl
When the path shold be just /, this is coursing the browser to have difficulties reading back in the cookie.
Maybe your host can help out with this.
If not you will have to find all places the forum sets cookies and manually set the cookie path using:-
Response.Cookies("cookieName").Path = "/"
|
|
|
 |
NISSANGTIR
Groupie
Joined: 20 April 2004
Location: United Kingdom
Status: Offline
Points: 85
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 May 2004 at 8:16am |
|
|
 |
NISSANGTIR
Groupie
Joined: 20 April 2004
Location: United Kingdom
Status: Offline
Points: 85
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 May 2004 at 11:12am |
Ok - This is last time I shall ask for help I promise  - My hosts have asked me this:-
...........
does the designer know the phrase to search for and what to replace it with, ie:
search for Response.Cookies("cookieName").Path = "/" and replace with Response.Cookies("cookieName").Path = "/usautomotive.co.uk_ssl" ...........
???  - Is it going to be as simple as that??
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2004 at 3:32am |
|
I'm afraid not.
You need to get a program like UltraEdit and search for files that contain Response.Cookies
You then need to edit each of these files and put in the code for the
path the cookie should be set to, for your server it will be:-
Response.Cookies("cookieName").Path = "/usautomotive.co.uk_ssl"
At present no path is set in the forum code for cookies, the reason for
this is that it was found that by setting the path coursed problems
with allot of servers.
|
|
|
 |
NISSANGTIR
Groupie
Joined: 20 April 2004
Location: United Kingdom
Status: Offline
Points: 85
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2004 at 4:01am |
Ok thanks for that, I just need to get one thing staright in my head 
For example, below is a scetion of your code from the login page:
Response.Cookies("Forum")("UID") = strUserCode If CBool(Request.Form("ActiveUsers")) = False Then Response.Cookies("Forum")("Hide") = True Else Response.Cookies("Forum")("Hide") = False End If |
Should it now be:-
Response.Cookies("cookieName").Path = "/usautomotive.co.uk_ssl" ("Forum")("UID") = strUserCode If CBool(Request.Form("ActiveUsers")) = False Then Response.Cookies("cookieName").Path = "/usautomotive.co.uk_ssl" ("Forum")("Hide") = True Else Response.Cookies("cookieName").Path = "/usautomotive.co.uk_ssl" ("Forum")("Hide") = False End If |
|
 |
NISSANGTIR
Groupie
Joined: 20 April 2004
Location: United Kingdom
Status: Offline
Points: 85
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2004 at 6:35am |
Well aparrently not - If I do add that after each Response.Cookies I get this message:-
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "/usautomotive.co.uk_"]'
/usautomotive.co.uk_ssl/forum/admin/common.asp, line 217
DOH!! -boRg- I don't suppose I can pay you to sort this for me?? I will also pay for the link removal too - Just need it sorted now.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2004 at 10:58am |
Looks like you could be running an old version of the forum looking at that code, you should update to the latest version 7.8.
The part "cookieName" was only an example, you need to change this to
the name of the cookie and place it before the cookie is set eg.:-
Response.Cookies("Forum").Path = "/usautomotive.co.uk_ssl"
Response.Cookies("Forum")("UID") = strUserCode
If CBool(Request.Form("ActiveUsers")) = False Then
Response.Cookies("Forum")("Hide") = True
Else
Response.Cookies("Forum")("Hide") = False
End If
|
You just need to add the line before the cookie is set, not change any lines that are already there.
|
|
|
 |