Creating Personal Login/Logout

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
taufikedys

Creating Personal Login/Logout

Post 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.
Salketer

Re: Creating Personal Login/Logout

Post by Salketer »

Why don't you use the FrontEndUsers module? It would be the easiest way to do such a thing...
Post Reply

Return to “Developers Discussion”