View Single Post
  #1  
Old 02-02-2005, 08:19 AM
 
jdedba jdedba is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 96
 

Default How to determine if the user is logged in or not

I am trying to write a php form embedded into x-cart. The form is for user who already logged into x-cart. The challenges to me are

1. how to determine if a user is logged in or not.
2. How to direct the user to the x-cart login page if the user is not logged in.

X-cart files deal with those very well. But its code is very difficult for me to figure out which ones are importment and related to my problems.

Could you give me some directions or a few lines of codes?

Thanks a lot.

Jeff
__________________
version 4.1.1
Reply With Quote