By troym559 on
Hello all,
I have a drupal site and for the most part everything seems to work really well. Except for sometimes when I am testing I am logged in as an authenticated user and when I go to create content then click on the content I want to create it logs me out. Then if I re-enter the user name and password it takes me to the page I wanted to create. It's just a minor issue I guess but it seems like it will be a little annoying for the user to have to re enter there username and password when they are already logged in.
Does anyone know why this is happening or how to fix it?
Thanks
Comments
What 5.x version exactly? Is
What 5.x version exactly? Is it too old?
Check the admin/settings/performance page to see if there is any message that some of your modules are incompatible with aggressive caching.
Make sure that it isn't a proxy caching problem: http://drupal.org/node/32109
What is your site's URL like? Is it the usual http://www.example.com?
Does this happen with different browsers?
Check your site's cookie(s) in your browser and take a look at their content. Is there any difference between them in the cookie domain name or in the cookie path that they contain?
Run a phpinfo() (http://drupal.org/node/59680)
What are the session.cookie_domain and session.cookie_path values?
Thank you Sir, From your
Thank you Sir,
From your comment i was able to solve the problem. It was the URL that the add content link that i had created via workflow-NG was pointing too. I had it set to go to http://mysite/node/add/node_type - instead of http://www.mysite/node/add/node_type. Putting the www. into the create content link made all the difference.
Thank you so much.
There are some ways to make
There are some ways to make sure that this never happens:
In Drupal's .htaccess file there are some lines (currently disabled) which explain how to make the site either always use www. or never use www. no matter what the user types in the browser.
In the sites/default/setting.php file there is a $base_url setting (also currently disabled) with which you can make all Drupal's menu links to either always use www. or never use it.
In the links which you create manually you can use just the URL path (/node/add/nodetype) without worrying about the domain name.