I am looking to carry out an action when the system logs out a user for inactivity, or the logs themselves out.
It took me some time to figure out all the links, but I now understand a bit more about the process. However, the two page registrations confused me for a while, since the page comment only said how to call one of the pages. I must be growing old to miss the meaning ...
Sir your case is always very interesting. I learn new stuff every time , this time I learned error_log
params .
error_log("logout",1,"[email protected]");
Simply use hello world component, you need to make sure it is working and don't add non php stuff in the component files please, and may try following in old code
if($params['action'] == 'user/logout'){
file_put_contents(ossn_route()->www . 'testfile.txt', 'somestuff');
}
Dear, I suggest you to hire a developer from upwork or freelancer website because you may break things and get upset later as you may not able to get what you are trying. To be honest from your code experiments I see new things that I never seen on community before :) I wish you good luck with what you trying to achieve and hope you can get it done.
"... I have tested with a script in the root directory ..."
Peter, you have to have in mind that Ossn is initializing its own environment,
thus testing something with a standalone script may give different results.
That's why I strongly recommend to install the HelloWorld component and run these kind of tests inside of it.
@Michael, I was wanting to write a json file, but I wanted it to work for a log file first as a test.
I have tested with a script in the root directory, which writes a log file successfully using similar commands. I have tried the path"/log" as well as just "log", to no avail.
I have no idea where we would have to deal with log_errors
additionally.
Can you please explain?
errorreporting and logerrors are turned on.
Why not keeping things simple and use Ossn's pref-configured logging mechanism?
See https://www.opensource-socialnetwork.org/wiki/view/1954/how-to-enable-ossn-error-reporting
This way you would do a
error_log('my var of interest: ' . $any_var);
and that's it.
Didn't realise that Chrome retains cookies when you select "Continue where I left off" !
So the error logs are enabled in admin panel?
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)