| Author |
Topic Search Topic Options
|
TobiasWeltner
Newbie
Joined: 19 December 2007
Status: Offline
Points: 12
|
Post Options
Thanks(0)
Quote Reply
Topic: Registration/Cookies/Error Posted: 27 December 2007 at 9:11am |
|
I am just getting flamed by new users for not being able to register. I tracked down the cause to cookies. If Cookies are disabled (default in IE7), people cannot register. Since it is quite a hassle to enable cookies, I was wondering if I did something wrong or if this forum software really requires cookies as a mandatory prerequisite. Any help greatly appreciated!
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 December 2007 at 10:24am |
|
Cookies are not disabled by default in IE7, not unless you have changed the security level from the default 'Medium High' to 'High'.
Nearly all websites require some type of cookies, so gone as the days when headline news use to make out cookies were bad and users needed to disable them.
Web Wiz Forums doesn't require cookies to login users, although it does help and allows more features like the auto-login.
If cookies are not enabled in the users browser then an SID number will be created in the URL to track the user.
If you are having login issues then quite often this is coursed by your site not correctly setting cookies. You can try changing the cookie path to see if that resolves the issue, by editing in notepad the file includes/setup_options_inc.asp and changing the cookie path to the root of your site.
|
|
|
 |
kiklop
Groupie
Joined: 14 July 2005
Status: Offline
Points: 137
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2007 at 10:13am |
|
boRg,
a little off topic but still a close question;
on my site we have a situations where when using http://www.domain.com or http://domain.com
If one log-in with the www part of the url, then the log-in status isn't kept when www part is omitted (and opposite). Is this a normal behavior, something to do with my server or something else?
sorry for an OT question Thank you
|
|
|
 |
Jono
Mod Builder Group
Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2007 at 11:23am |
This is because of how cookies work. They are particular for each fully qualified domain name (and/or subfolders). They see www.domain.com and domain.com as different items, just as foo.domain.com and bar.domain.com are different.
|
 |
kiklop
Groupie
Joined: 14 July 2005
Status: Offline
Points: 137
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2007 at 11:52am |
|
Thanks .. so this is normal and ist't specific to my server setup. Is there any simple solution for this (some kind of redirecting) or i should leave this as it is. Thank you !
|
|
|
 |
Jono
Mod Builder Group
Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2007 at 5:31pm |
Yes, this is normal. You could put a redirector in so that anyone who goes to domain.com is automatically redirected to www.domain.com.
If you have access to the web server, you can configure IIS to redirect, else you'd need a bit of asp or Javascript code to detect which domain has been requested and redirect to the one with www. Let me know if you need help with either if these.
|
 |
kiklop
Groupie
Joined: 14 July 2005
Status: Offline
Points: 137
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2007 at 6:03pm |
|
Thanks !! Will ask my server host company for this. Thank you.
|
|
|
 |
Jono
Mod Builder Group
Joined: 18 September 2006
Location: United Kingdom
Status: Offline
Points: 100
|
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2007 at 9:29am |
If your hosting company can't make the changes (they may need to setup IIS to use a custom 404 page to redirect from domain.com), you will need to use some code such as:
If lcase(request.ServerVariables("SERVER_NAME"))="domain.com" then
end if
If you wanted to be really helpful to your members, you could change this to
If lcase(request.ServerVariables("SERVER_NAME"))="domain.com" then
response.redirect "http://www.domain.com" & request.ServerVariables("PATH_INFO") & request.ServerVariables("QUERY_STRING")
end if
This will redirect them to the correct topic/post, but on the www domain. Hope this helps.
|
 |