Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer Add Product issues (logging user out?)


Recommended Posts

I have been working on getting Customer Add Product working ( http://www.oscommerce.com/community/contri...er+add+products ) and have had a few issues...

After fixing the link generating issue (using modified tep_href_link function, original links it was making was killing them for some reason), i found everything worked, except for deleting the item. I started outputting the entire session array on each page as it went, and found when confirm delete was clicked, it seems to log you out. Up until then, there is the customers login info in the session, but after confirm delete, its gone.

 

I have been working on tracking where it happens, but what seems extremely odd is all of the viewing/editing/deleting stays on the same page (account_manage.php), and nothing specific to the command happens before the session starts

 

<?php
/*
 comments snipped
*/

 require('includes/application_top.php');
 print_r($_SESSION);
 require(DIR_WS_FUNCTIONS.'product_manage.php');
 require(DIR_WS_CLASSES.'product_manage.php');
[...]

 

This is the code at the beginning of account_manage.php which does all the main functions. On everything up until delete confirm, print_r has the customers login info

On delete confirm, print_r shows no user info. And when going back to the main page (top of the catalog) it shows you as Guest again and theres no logoff link

 

The only thing I can see that delete confirm does differently is does a post with the product_id info, but I havent been able to figure out why that would make a difference

 

Any ideas?

 

Thanks,

Doug

Edited by SkyyPunk
Link to comment
Share on other sites

Hmmm

 

I am making a feedback system for people who sell their products on the site, and on the page that received the POST data, you get logged out (login data is lost at least). So it looks like the previous issue is related also, since it submits post data...

 

All of the post information goes through fine, but the current users login data gets dropped...

 

Any ideas on this? Its rather odd...

Edited by SkyyPunk
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...