This topic is locked
[SOLVED]

 Confused about session variables

5/27/2020 5:07:39 PM
PHPRunner General questions
B
bobalston author

Documentation for ver 10.4 includes the following:
"Replaced
Starting with PHPRunner version 9.7, session variables were replaced with the functionality available via Security API and Search API.
The only exception is the language variable.
"
Does this mean you can no longer create and use session variables?
Is there some other way to have session variables, as The Security and Search APIs does not seem to meet that need.
Bob

M
MikeT 5/27/2020

You still can create and use your own session variables in your code. I think the help page just talks about security / user rights stuff that was previously not wrapped in the API that's available from 9.7 onwards.

Sergey Kornilov admin 5/27/2020

You are confusing session variables with PHPRunner session variables. You can create and use your own session variables as much as you need while PHPRunner session variables are being replaced with API calls. API calls mean everything is documented which means it will keep working in later versions of PHPRunner.