Search found 188 matches

by MKULTRA
Thu Apr 23, 2015 11:04 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Sorry, I tested that and it did not work. Sessions are being killed or unset within a function pertaining to includes/compatibility_globals.php I checked through sessions.php and did not find anything in there that was helpful either.
by MKULTRA
Thu Apr 23, 2015 9:36 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

I traced it back to this line within includes/compatibility_globals.php, sessions work above this line, but not below it:

Code: Select all

$request	= $phpbb_container->get('request');
ETA:

Though so far I have no idea where that leads to or comes from, but it has something to do with phpbb/sessions.php.
by MKULTRA
Thu Apr 23, 2015 9:05 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

There is something preventing session from working in my forum, the above code is fine in my forum directory when in a file all by itself, but just not in the forum code itself, the session is being killed somewhere. I tried using it in index.php and ucp_register.php, both never return the supposedl...
by MKULTRA
Thu Apr 23, 2015 8:41 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Unfortunately, it does not appear that sessions are functioning in 3.1. I have no clue as to why, but this example does not work (noting that session_register() does not help any either): session_start(); echo "SESSION VAR: ".$_SESSION["T"]."<br />"; $_SESSION["T"]="TEST SESSION SET"; Response: [php...
by MKULTRA
Thu Apr 23, 2015 4:00 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Oh no, simply set a value to use for naming form elements, in this case during registration, then upon submission, use those values to obtain the data submitted. Similar to these, but using PHP: http://stackoverflow.com/questions/18856970/python-mechanize-login-form-sending-input-to-a-field-with-a-r...
by MKULTRA
Wed Apr 22, 2015 7:56 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

In the tests I did $_SESSION will not pass the data onto the next reload. Will $request->overwrite also work for adding new variables to the array or is that only for variables already included in the array--if so where to you go about adding new variables to it to prepare for their later use? I am ...
by MKULTRA
Wed Apr 22, 2015 6:52 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Thanks. And to update or create a in use or a new variable would $data['...']="...", be used? Which could then be retrieved with $request->variable($data['....'])?
by MKULTRA
Wed Apr 22, 2015 2:55 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Anything sent to the client can be manipulated so hidden fields would not work. The variables would need to be set on a per user basis and in certain cases would change with each page load, while others would be static within the session, so globalized caching would not work. And finally, what does ...
by MKULTRA
Wed Apr 22, 2015 2:18 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Why is it hard to explain? What argument is used to keep data alive while bouncing from one page to another? Certainly, this is a core feature included in phpBB 3.1. I simply need to set, retain, and retrieve data for future reference and to use that data to reference specific form data, all while m...
by MKULTRA
Wed Apr 22, 2015 10:33 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

So then are these the correct methods for checking and saving form data in a session? To check if form element has been set: $request->is_set_post('...'); To set a session variable: $config->set('...',''); (I read those articles linked above and they really just go over the basics of doing a rudimen...
by MKULTRA
Tue Apr 21, 2015 8:49 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Is this part of the code used to setup sessions? If so is there a naming class specific for general sessions as well?

Setup:
$user_row = array(
'username' => $data['username'],
...

Retrieve:

$test=$user_row['username'];
by MKULTRA
Tue Apr 21, 2015 5:30 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

OK, and how does one use them in phpBB 3.1? Because, I haven't the foggiest clue, I had tried several Google searches, but everything is from many years ago so that is of no help for 3.1. Is there a walk through manual or is this some secret that nobody can speak of, but only vaguely mention? I need...
by MKULTRA
Tue Apr 21, 2015 12:30 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Thank you. Though what about working with $_POST and retrieving $_SESSION variables, etc? This seems to have me completely stuck spinning circles at this point. Surely, phpBB 3.1 has some other way to save, modify, and read session data, yes? In my testing, I could access POST data, but I could neve...
by MKULTRA
Tue Apr 21, 2015 4:00 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

Is there any instruction for any of this, Googling only queues stuff from 2007-2009, so far that I have found? For example, how do you get data from a session variable or session array using the request method? Such as storing for data dynamically in a session to use it for checking on form data, e....
by MKULTRA
Mon Apr 20, 2015 9:50 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2388

Re: Working with session and post form variables

The mod will also include a honey-trap, a version of the new No-Captcha-ReCapatcha jQuery script, a micro-timing check on submissions, and will just divert to the normal thank you page upon failures or a flooding-lockout page once a threshold has been reached on repeated page reloads.

Go to advanced search