How to pass session variable to php file without including app connect

Hello,

How can I pass a session parameter or a parameter from an app connect application to an .php file where there is no app connect framwork included?

I can send query parameter by using ‘?’ at the end of the file path link and than use the $_GET for assign it to a variable.

What I need is that, the parameter should not being seen in the URL of the file at the adrress bar.

How can I pass paramaters to assign varibale in my normal php file without using app connect?

I tried API Action from client side and add query paramaters but is it not working.

Thank you.

I assume you are talking about CLIENT SIDE session variables.
These can be accessed via JS, no dependency on Wappler or App Connect.

If you are talking about SERVER SIDE session variables, then you cannot access them in client side in any manner, with or without App Connect.
Only way is the use $_SESSION object in PHP code itself. So that sort of solves your question as well.

Yes, I am trying to pass parameters from app connect application to a non app connect included php file, @clientside.

I used session storage manager for trial but can not accessed the variables.

Could you please give me an example how to set session variables in app connect page and to get access them non app connect php page?

After you have set the session variables, can you see them in the browser’s dev tools > application > session storage section?

If so, you can access the session in the other page via JS. https://www.w3schools.com/jsref/prop_win_sessionstorage.asp

PHP is being evaluated on the server and not on the client. You can only pass variables to PHP using the querystring or by using a post request.

It works with query string.
Could you please tell me how can I make post request from app connect client page to non app connect basic php file by using app connect?

I was using API Form accedentally.

Replaced to normal form and POST variables working now.

Thanks a lot.