Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty and Auth

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Dougk
Smarty n00b


Joined: 12 May 2003
Posts: 1

PostPosted: Mon May 12, 2003 9:52 pm    Post subject: Smarty and Auth Reply with quote

does anyone know how to implement Smarty with Auth? There appears
to be a problem with sessions. Can Auth close its session? Am I wrong
about this?
Back to top
View user's profile Send private message Yahoo Messenger
toma
Smarty Regular


Joined: 25 Apr 2003
Posts: 62

PostPosted: Mon May 12, 2003 9:54 pm    Post subject: Reply with quote

Are you referring to PEAR::Auth? If so, I've had no problems with pear::auth at all. Here's the code I use on a web site that requires authentication for every page:

// Check for logout
if ($_REQUEST['logout']) {
$a->start();
$a->logout();
session_destroy();
header("Location: $html_root");
exit();
}

// Init the session for this user and authorize.
$a->start();
if (!$a->getAuth()) {
die();
}
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP