Page 1 of 1

Creating Personal Login/Logout

Posted: Thu Jul 01, 2010 10:26 am
by taufikedys
Hi I'm Newbie in CMSMS,

Currently I'm using CMSMS V1.7, PHP 5.2 and MySQL 5.081

I'm Planning to make a page in which users can login and logout, but using traditional php way, not the CMS built in CMSMS login.

briefly my login codes is like follow [standard php login]:

          $_SESSION['name'] = "SOMETHING";

But when I try to call the stored session variable by adding this line in CMSMS page:
        {php}
session_start();
          echo $name;{/php}

It won't show the value of the variable.

Could anyone help me with this .... thanks ...

Notes: actually I'm trying to do the same as this guy want to do:
http://forum.cmsmadesimple.org/index.php?topic=43443.0
But it doesn't have any adequate information to solve the problem.

Re: Creating Personal Login/Logout

Posted: Fri Jul 02, 2010 3:59 pm
by Salketer
Why don't you use the FrontEndUsers module? It would be the easiest way to do such a thing...