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.

User tracking

March 25, 2009 8:11pm

Subscribe [1]
  • #1 / Mar 25, 2009 8:11pm

    exmonkey

    93 posts

    Hi - my client wants a site that users (who are given an ID number) can log into and view various pages of info.

    Couple of things -
    1 - Every login needs to be recorded (time date etc)
    2 - after x minutes of inactivity, they will be logged out.

    They also don’t want to use passwords.

    Now, I guess I can fool the member module login by making the password field hidden (with a value), but can EE do the other bits? I am guessing that the tracking module is not set up for this.

    Do you think that there is another way to do this with free form for example?

    thanks, Marc

  • #2 / Mar 26, 2009 7:35am

    exmonkey

    93 posts

    Bump - anyone?

    BTW I have managed to sort out the session time out thing - I just really need to know if there is a way of recording every login….

    Marc

  • #3 / Mar 26, 2009 8:54am

    exmonkey

    93 posts

    Bit one sided this conversation - However….

    I have managed to use Free form (with a bit of javascript to auto submit) to store a date and time for e very login.

    My problem now is that the redirect on submit function in FreeForm is losing the logged in user’s session (I am using Session only for members).

    Does anyone know how to fix this OR how to get at the Session ID so I can append it on the return path myself?

    Marc

  • #4 / Mar 26, 2009 9:53am

    exmonkey

    93 posts

    Well here’s how I did it.

    User logs in-> Goes to first page which autosubmits (using JS) to a freeform weblog with the user ID, name etc.
    FreeForm sends the user to the main site page.
    To get freeform to respect the user’s session I prefixed the return url with <? global $SESS; echo($SESS->userdata[‘session_id’]); ?>

    That seemed to work.

    Quite in here init?

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

ExpressionEngine News!

#eecms, #events, #releases