The Servant that is pretty much my script
I like the check ip address suggestion. On every page, as apart of a security stragety I check to to see if the session is active. I could (if I understand correctly) check how long that session has been going for and kick them out if they have been around longer than 15 mins and from an external ip....
User Profile
Collapse
-
Extend Session Timeout Depending on users
Hi All
I know I can set the php.ini timeout to increase to what ever I like
I also know I can do it from a php script.
My question is if I can change it from the script will it extend the seesion for all users or only the user who intiated the call from the script?
If not how can I set intranet users to have a time out of 1hr and internet users 15mins
any help would be greatly ap... -
Read Books
The best php mysql book i ever read was the apress
Learn PHP5 from novice to professional. give you a great all round understandingLeave a comment:
-
[php]// required connect
SmartyPaginate: :connect();
// set items per page
SmartyPaginate: :setLimit(15);
$sql = "Your Sql goes here";
// assign your db results to the template
$smarty->assign('make ', get_db_results( $sql));
// assign {$paginate} var
SmartyPaginate: :assign($smarty );
// display results
// display results
...Leave a comment:
-
We do a similar thing with urls in an email
the url looks somthing like this
http://youdomain.com/product.php?id= 23&emailview=Y
this way we can test the $_GET['emailview'] and do something.
why not create a transation table that purely counts the views of that particular resume rather than increment or
$emailview = $_GET['emailview'];
if($emailview == "Y"){
...Leave a comment:
-
I only started using paginate the other day I followed this
http://www.phpinsider. com/php/code/SmartyPaginate/
and worked first time..Leave a comment:
No activity results to display
Show More
Leave a comment: