ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Proper method of automatically logging in a new user via a custom registration form?

September 03, 2009 5:44pm

Subscribe [1]
  • #1 / Sep 03, 2009 5:44pm

    wspub

    21 posts

    Hi all,

    I am working on a project that works with a third party merchant service (Authorize.net CIM). I currently have an order form that uses ajax to do all the dirty work, and this includes inserting a new user into the members table.

    I am trying to work out the best way of automatically logging in a new user upon registering/purchasing so that if they were to make an immediate additional purchase, all information would be available in the $SESS>-user_data array.

    Is there a function available to do this?

    I could write one myself, but would just need to know what cookies to set, etc.

    Any ideas?

    Thanks in advance.

    [Mod Edit: Moved to the How to forum]

  • #2 / Sep 03, 2009 6:23pm

    Euan

    214 posts

    I know there is a plugin that automatically logs in a member when they register if that’s of any use?

  • #3 / Sep 04, 2009 4:28pm

    wspub

    21 posts

    I suppose I couldn’t use it directly, but it may help, yes. I found a thread in the forum that linked to the download, but it results in a Page Not Found. Any idea where I might be able to get my hands on it?

    Thanks,
    Steve

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases