osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Admin Logs Out on Post Form

This is a discussion on Admin Logs Out on Post Form within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi, I have a new install of osCMax RC2. I have only one issue of note - every time I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-06-2005, 06:39 AM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default Admin Logs Out on Post Form

Hi,

I have a new install of osCMax RC2. I have only one issue of note - every time I post a form in the admin panel (eg Manual Creat Order), I am logged out of the Admin Panel.

I thought I was losing the session, but I have mysql set for sessions, and all seems to be fine.

I have tried reinstalling, with no change in the outcome.

Has any one come across this - any pointers appreciated.

Cheers
Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-06-2005, 08:20 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,792
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default RE: Admin Logs Out on Post Form

Try "loging out" then try again. Also store session in MYSQL (set in configure.php files).
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-06-2005, 11:37 AM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default

Hi JPF,

Thanks for the prompt reply.

I had a search through the threads prior to post, and have already tried to log off then log back on - tested this extensively, but did not change behaviour.

I also checked my config files and they have sessions set to mysql.

The behaviour occurs when ever i post a form eg go to 'create order' select customer from drop down list, hit 'submit' - bang I am logged out. Very frustrating!

Any other thoughts on where I can look. I have noticed that from time to time this issue gets raised, but cannot find a solution.

Thanks & Regards,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-06-2005, 02:02 PM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default

Further update ---

I found a post with the same problem suggesting that it could be resolved by using a different browser - I downloaded FireFox (great browser!) and tested but the behaviour remained the same.

Any other ideas?

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 11-09-2005, 02:15 PM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default

For those that find this thread with the same problem - I ended up resolving by moving to a different ISP with later versions of MySQL and PHP and the same version of Apache. I transferred the code and database with out reinstalling, just updating the configure.php files (x2) and the problem went away.

I believe my ISP also required some compulsory security mods to osCommerce which was causing the glitch with osCMax.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 11-09-2005, 03:50 PM
Lurker
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Buser
Default

Hi Cameroti,

I'm currently experiencing the same problems as you were experiencing.
Can you please specify which versions of MySQL, PHP and Apache you are currently running without this problem? Do you have any idea which mods might have caused the problem? Just in case if this problem isn't related to the installed versions of MySQL, PHP and Apache.

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 11-10-2005, 05:54 AM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default

Hi Buser,

My previous ISP was running the following config

Appache 1.3.33
PHP 4.3.2
MySQL 4.0.21

My current config is

Appache 1.3.33
PHP 4.4.0
MySQL 4.1.13 standard

Just as importantly, my previous ISP required some changes to the application_top.php files, specifically for the admin/application_top.php file they required 'isset' to be replaced by '!empty' (I think this only occurs once).

So to get rid of my problem, I reversed the above code change and transferred to a new ISP. I didn't bother re-installing, I just copied the files across, dumped and uploaded the data base, and changed the relevant lines in the two configure.php files... and hey presto everything worked fine.

I hope this helps - I have seen a number of posts with the same problem on other boards, and never a specific resolution.

Cheers
Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 12-02-2005, 12:02 AM
New Member
 
Join Date: Mar 2005
Posts: 18
Thanks: 2
Thanked 4 Times in 1 Post
Rep Power: 0
avibodha is on a distinguished road
Default

One more thing to check is your value of PHP_SELF. You can see this in your Server Info panel under Tools.

See if this path matches exactly your path in your config. On my server it's different than my SSL secure admin path. Even though the page comes up, it's using a slightly different path. That means that the cookie for your logged-in ID is not passed to the page, and voila, you're logging in again.

Be sure your WS_ADMIN is correct because that's the path the cookie is set with.

My solution is to wrap each $PHP_SELF with basename($PHP_SELF) whenever I find one not working. This is especially true for forms since most of them do not pass a hidden field for the adminid.

All $PHP_SELF's (except for the ones just looking at the filename extension) should probably be replaced with a function so it can be customized as needed.

---todd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 03-09-2006, 06:04 PM
Member
 
Join Date: Jul 2005
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
cameroti
Default

The following change worked, even on my old ISP!

Code:
# Edit the file admin/includes/application_top.php
On line 35 (approx), replace :

$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ?$HTTP_SERVER_VARS['PHP_SELF']
: $HTTP_SERVER_VARS['SCRIPT_NAME']);

with :

$PHP_SELF = (!empty($HTTP_SERVER_VARS['PHP_SELF']) ?
$HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);
Hope this helps someone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Admin losing session on form submit, returning to login batyushki osCMax v1.7 Discussion 4 10-27-2004 03:22 PM
Post checkout forwarding mcdanie1 osCommerce 2.2 Modification Help 0 09-25-2003 09:31 PM
Please I need help with post install an error MeGaHeRtZ osCommerce 2.2 Installation Help 1 06-26-2003 10:22 AM


All times are GMT -8. The time now is 12:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax