Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: login/logout, no user view, no config...  (Read 7529 times)

0 Members and 1 Guest are viewing this topic.

iroc42

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
login/logout, no user view, no config...
« on: September 29, 2005, 09:12:37 pm »

ok well it started up again.

www.msjerilee.com/cpg --> the gallery
www.msjerilee.com/forum --> the phpbb forums

username: tester
password: test


this is what happens, after clearing out my cookies, i go to the coppermine gallery page. i login, and it returns me back to the gallery page. but it still states [LOGIN] implying im not logged in. when i click on LOGIN it tells me that my username is already logged in. then i click on the config button, it says i don't have permission to view this page. when that happens it has the appearance that i have logged out again, the LOGIN button appears. i click it and it says: You are already logged in! cant go between user mode and admin neither.
Logged

Nibbler

  • Guest
Re: login/logout, no user view, no config...
« Reply #1 on: September 29, 2005, 10:06:49 pm »

This could be caused by you using your site without the www prefix. Your forum is setting cookies on www.msjerilee.com - if you can adjust your forum's cookie domain to .msjerilee.com that may resolve your issue.
Logged

iroc42

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: login/logout, no user view, no config...
« Reply #2 on: September 29, 2005, 10:11:15 pm »

i understand, but then again i dont quite.

for my forums my cookie settings re as follows

cookie domain: *blank*
cookie name: phpbb2mysql
cookie path: /

what is it that im supposed to change to test your theory out?

im an idiot.. i reread ur post.. cookie domain.. check..
« Last Edit: September 29, 2005, 10:18:28 pm by iroc42 »
Logged

iroc42

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: login/logout, no user view, no config...
« Reply #3 on: September 29, 2005, 10:35:22 pm »

tried it. exactly like this...


.msjerilee.com     <-- domain cookie setting in the config of phpbb.. still no good.



i tested your theory tho. i go to my gallery using http://msjerilee.com/cpg and it works perfectly.

^ eh nvm the above statement. when i try and upload it says i dont have sufficient permissions and then it goes back to the [LOGIN] button.

so what steps do i need to take to solve this problem?
« Last Edit: September 29, 2005, 11:03:04 pm by iroc42 »
Logged

iroc42

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: login/logout, no user view, no config...
« Reply #4 on: September 29, 2005, 11:32:53 pm »

this is what ive observed.. i can go into the config panel only when i go to http://msjerilee.com/cpg, but i cant upload cause it'll tell me i dont have privilages.
then i go into http://www.msjerilee.com/cpg, and i cannot go into the config panel, but i can upload (sometimes).

seemss really inconsistant. its really starting to get on my nerves cause i had no issue up until recently and there is no reason why.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: login/logout, no user view, no config...
« Reply #5 on: September 30, 2005, 12:02:22 am »

have you tried to clear your cookie? I've just logged in as tester using www in the domain and without, logged out, switched etc. and all seems to work smooth... the upload page comes up without problems.

iroc42

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: login/logout, no user view, no config...
« Reply #6 on: September 30, 2005, 12:32:25 am »

yeah cleared cookies and switched between IE and Firefox. might try the rebooting method. cause we all know how that mysteriously fixes things.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: login/logout, no user view, no config...
« Reply #7 on: September 30, 2005, 08:58:08 am »

Suggested fix: make both your forum and your gallery use the domain name without the www. To do so, you need to create an .htaccess file and put it into your web root (if your webhsot allows you to do this). This should be the content of the .htaccess file:
Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.msjerilee\.com$ [NC]
RewriteRule ^(.*) http://msjerilee.com/$1 [R,L]
If you already have an .htaccess file there, you'll have of course to add the suggested code instead of creating a new file.
Logged

iroc42

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: login/logout, no user view, no config...
« Reply #8 on: September 30, 2005, 09:50:12 am »

so i just put that code in a txt document, rename it to .htaccess and place it in the main directory?

sorry for the n00b question, ive been doing webpages for a while and never had to come across this kinda fix. not doubting your fix, just you learn something new everyday.

edit: i googled it, i think i got the idea. thanks for the suggestion, ima try it asap.
« Last Edit: September 30, 2005, 10:03:29 am by iroc42 »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: login/logout, no user view, no config...
« Reply #9 on: September 30, 2005, 10:01:25 am »

yes, .htaccess files are plain text files that are being used in the Lunix/Apache world, so it might work for you, unless your webhost doesn't allow the rewrite engine. It won't hurt to try - if it fails, nothing will happen at all, and you can savely remove the .htaccess file again or replace it with an empty one.
You can do many cool things with this method like hotlink protection, redirection of error pages etc.. Take a look at these pages:
http://httpd.apache.org/docs/1.3/howto/htaccess.html (more advanced stuff: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html)
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
http://www.vnwr.com/resources/tutorials/htaccess.html
There are a lot more pages that explain this much better than I could, just google for htaccess rewrite tutorial or similar.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 15 queries.