Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin for members only


eratini

Recommended Posts

Does anyone know how I could let my oscommerce administration panel open for my members?

 

In other words, I want all the members of my main oscommerce site to be able to see admin area.

Despite the fact that in the login page (login.php) there is php code that registers the session of customer_id -> tep_session_register('customer_id'); ,

in administration page it seems that customer_id is not registered so tep_is_registered('customer_id') doesn't work...

Why does that happen?

 

Does anybody have any idea....?

Link to comment
Share on other sites

For osC RC**, you need to use tep_session_is_registered('admin') to determine if the admin session is running, not 'customer_id'.

 

I think that is what you need.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Link to comment
Share on other sites

For osC RC**, you need to use tep_session_is_registered('admin') to determine if the admin session is running, not 'customer_id'.

 

I think that is what you need.

 

Rob

 

Thank you Rob for your reply.

I think that tep_session_is_registered('admin') is for administrators. What I need is that the customers to access the administration panel and that the panel recognizes them like tha index oscommerce page, like: welcome ilias!

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...