Skip to content

Instantly share code, notes, and snippets.

@marfillaster
Created January 29, 2010 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marfillaster/289424 to your computer and use it in GitHub Desktop.
Save marfillaster/289424 to your computer and use it in GitHub Desktop.
<?php
class myUser extends sfGuardSecurityUser
{
public function signIn($user, $remember = false, $con = null)
{
$user['Profile']['session_id'] = session_id();
$user['Profile']['last_login_ip'] = $this->request->getRealRemoteAddress();
parent::signIn($user, $remember, $con);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment