Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

X-Cart Login Session

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 07-01-2014, 06:49 AM
 
trinh trinh is offline
 

Newbie
  
Join Date: Jun 2014
Posts: 2
 

Question X-Cart Login Session

I'm currently using X-Cart and have some employees (each has an X-Cart administration account). I also develop some custom PHP webpages (not X-Cart modules) which require my employees to login before they can access those webpages. I want my employees to use their existing X-Cart accounts to login.

For example, whenever my employees access custom webpages, if they're already logged in to X-Cart, they should be fine. If not, they should be redirected to X-Cart's admin login page.

My question is: How can my PHP scripts check if users are already logged in to X-Cart? I tried to include auth.php but I got the error message "Can not initiate application! Please check configuration."

Thanks a lot!
__________________
X-Cart Gold v4.4.3
Reply With Quote
  #2  
Old 07-03-2014, 10:58 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: X-Cart Login Session

Hi!

Could you please let us know what X-Cart version you are using?

You should update your forum account's signature and put your X-Cart version there. It will help you get faster responses in the future.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #3  
Old 07-03-2014, 11:06 AM
 
trinh trinh is offline
 

Newbie
  
Join Date: Jun 2014
Posts: 2
 

Default Re: X-Cart Login Session

Quote:
Originally Posted by tony_sologubov
Hi!

Could you please let us know what X-Cart version you are using?

You should update your forum account's signature and put your X-Cart version there. It will help you get faster responses in the future.

Thanks for replying me. I'm using v4.4.3.
__________________
X-Cart Gold v4.4.3
Reply With Quote
  #4  
Old 07-03-2014, 11:20 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: X-Cart Login Session

This error means that auth.php was included incorrectly.
You should try to include it in the script inside X-Cart's root folder.

Otherwise, it will not work properly.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:08 AM.

   

 
X-Cart forums © 2001-2020