Simple 4 steps:
1. Edit the User or User Group class and define new attribute "textline"
2. Edit your group or user and set the attribute destination
3. Add the INI-Settings into site.ini.append.php 4. Clear the caches
It's already described in the article, if you trying to access a restricted area (Kernel 1 - Error), you would be redirected to it after login instead of the object-attribute-value. So you should run /user/login to check it out.
I dont know mate why it not working for me......After login the user is going to the page which he/she visited last not mentioned in the user group class.
You can overcome this by setting the post parameter 'RedirectURI' to '/' in your user/login.tpl template, this will make the user/login code ignore the session variable but still validate it as empty further down the code when it decides to read those pr user / user group, ref:
// Determine if we already know redirection URI.
$haveRedirectionURI = ( $redirectionURI != '' && $redirectionURI != '/' );