By paulcoghlan on
I see that Drupal doesnt handle a non-cookie situation very well. In fact it doesnt appear to handle it at all. Any attempt by a user to log in simply returns the user to the log in screen as if they hadnt input anything. There has to be a more elegant way of handling these users.
Has anyone put in place a page to which they direct users who have cookies turned off? A sort of "this site needs cookies to operate..." type page. I am interested in doing just such a thing but need to know more on how to do it and where.
Any ideas?
Thanks,
Paul
Comments
you can add this line in
you can add this line in head section
<script type="text/javascript">if (!document.cookies) window.location="http://please_enable_cookies_page"</script>Oh.... and don't forgot to check if you're on that page - then do not check for cookies. In other case you'll got an infinite loop of refreshing
This might be just the type
This might be just the type of thing I am looking for. I am a little surprised it isnt a default feature.
When you say add this line in the "head section", where is that?
What file do I need to add this line to and where within that file. Sorry for being so clueless but I havent had to modify 'head section' before.
Thanks,
Paul
use the mission statement
use the mission statement box for user warnings about cookies. the smae box that drupal uses on its front page, to show new releases.
Thanks but surely this would
Thanks but surely this would present the message to every user regardless of whether or not they have cookies enabled?
With less than 2% of users with cookies enabled this should only be seen by that minority. I dont want to bother the 98% with something that doesn't affect them.
I think a code change such as detailed in the other comment might be more appropriate as it only presents the page to those needing it.
Thanks,
Paul
using php visibility it
using php visibility it could be shown to non logged in users. as a reminder to log in with the cookie warning sentence. Thus not bothering 98% of a userbase.
Sure but it would still be
Sure but it would still be presented to all non logged in users regardless of whether they have cookies allowed.
I am trying to achieve something different. I am trying to redirect those people that have cookies turned off to a page that explains why they were unable to register/log in.
Thanks though,
Paul