spoke to soon (Warning your browser does not accept script's cookies problem) spoke to soon (Warning your browser does not accept script's cookies problem)
 

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]

Main Menu

spoke to soon (Warning your browser does not accept script's cookies problem)

Started by jarthel, January 05, 2006, 12:51:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jarthel

well, as I mentioned in a previous thread. I was getting this error.

============
here's my home setup

internet  <---> adsl modem <--> freebsd firewall/gateway <--> windows PCs

FreeBSD is running Apache22, PHP 5.1.1 and MySQL 4.1.16. I'm using the latest CPG which I believe is 1.4.3.
==============

I checked from work if I can logged in and I do not get the "Warning your browser does not accept script's cookies" message. But I was getting it from my windows PC which is inside my home network.

So thinking it could be some misconfiguration in Windows, I decided to reinstall Windows from scratch. The problem is that I'm still getting the error. I have changed the cookie configuration in IE to accept all cookies and I still get the problem.

Could there be a setting somewhere to make it work?

I have to add that my home network setup has been in existent for several months now and it was working beautifully. It's only recently that I have been getting this "Warning your browser does not accept script's cookies" problem when logging in from inside the home network.

Thank you for the help.

Joachim Müller

do you only get the warning or are you actually not able to log in?

jarthel

Quote from: GauGau on January 05, 2006, 01:11:22 PM
do you only get the warning or are you actually not able to log in?

If I put my correct username and password, CPG will say "Welcome username" to indicate that my info was verified successfully. It will then take me to the index page where I will see the login link again. I know that if I'm able to login successfully, I get new set of links in the index page.
===============
As I know PHP, I did some tracing.

The index page will successfully call "setcookie" function (the function returned true). According to PHP manual:
=======
Once the cookies have been set, they can be accessed on the next page load with the $_COOKIE or $HTTP_COOKIE_VARS arrays. Note, autoglobals such as $_COOKIE became available in PHP 4.1.0. $HTTP_COOKIE_VARS has existed since PHP 3. Cookie values also exist in $_REQUEST.
========
So when I clicked the login link, the cookies should be set (according to the PHP manual). I then add some code in login.php to display $_COOKIE (via print_r function call) and it displays an empty array.

Tranz


jarthel

Quote from: TranzNDance on January 05, 2006, 04:28:02 PM
Have you modified any of the source files?

The only changes I made are inserting numerous echo/print_r statements to track down the problem. I have removed them since.

jarthel

I just tried loggin in from work and I can login successfully. My username/password was verified. Then, I was returned to the index page and I get new set of links (the login link in the index page has disappeared).

ecto

When you're at home, have you tried logging in with a different browser than IE (e.g. Opera or Firefox)? Just to make sure the issue is/isn't browser-related.

jarthel

Quote from: ecto on January 06, 2006, 12:37:02 AM
When you're at home, have you tried logging in with a different browser than IE (e.g. Opera or Firefox)? Just to make sure the issue is/isn't browser-related.

I'll try that when I get home. thanks

ps. I forgot to include that when I tried logging in from work, I was using mozilla and IE. and I didn't habe any problems logging in using both browsers.

Abbas Ali

Also note the full URLs in the address bar of the browser before you login (i.e on login.php page) and when you get redirected to index page after login (i.e. index.php page).
Chief Geek at Ranium Systems

jarthel

Quote from: Abbas Ali on January 06, 2006, 08:30:57 AM
Also note the full URLs in the address bar of the browser before you login (i.e on login.php page) and when you get redirected to index page after login (i.e. index.php page).

this is URL for the login page as displayed in the address bar (IE) = http://sakaki_nic3:19998/coppermine/login.php?referer=index.php

After logging in and redirected back to the index page, this is the URL as displayed in the address bar (IE) = http://sakaki_nic3:19998/coppermine/index.php

jarthel

thinking it could be a misconfiguration in my coppermine, I decided to trash the current one. i drop and recreated the database and deleted all the files and used the files from the zip download.

I then proceeded to install it like it's a brand new install and I was successful. The problem again is that my browser is rejecting cookies.

I'm downloading mozilla now so I'll try that next. :(

jarthel

hmm seems to be browser related. no problems at all logging in using firefox.

as i mentioned above, i have "accept all cookies" set in IE.

ecto

Might have something to do with you using some kind of alias ("sakaki_nic3") instead of the real URL? Some kind of security/zone setting in IE perhaps. Have you tried using the real address?