Jump to content

Check if user is logged in ..


ChrisColeman
 Share

Recommended Posts

Hi CubeCart People,

                                   hopefully simple question ..

I'm changing the contact form on a site so user has to be logged-in to use it - this because a lobotomized BOT has gotten hold of the form and is sending just a few unsavory messages every day to site-admin. 

Well we don't see it as a big deal to force users to login before using the contact form, but how do I determine if a user is logged in (or not), or to put it another way if a login session is active ?

For your info I will use hook: class.cubecart.contact to send different content when the user is not logged in.

Thanks and Regards, ChrisColeman.

😎

Edited by ChrisColeman
punctuation
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
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.

 Share

×
×
  • Create New...