Recent

Author Topic: fpweb CGI Session  (Read 1033 times)

JuviaYamired

  • Newbie
  • Posts: 4
fpweb CGI Session
« on: August 01, 2024, 01:33:13 am »
Hello i have a problem with cgi session with iniwebsession, every time i make request the session id changes and all session variables are lost, i had an old functional project and tried to use it but after compiling with the latest version results in the same problem. Does anyone knows a solution to this problem?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8768
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: fpweb CGI Session
« Reply #1 on: August 01, 2024, 06:03:08 am »
Do you send back the session ID on subsequent requests? If not, that's to be expected.

JuviaYamired

  • Newbie
  • Posts: 4
Re: fpweb CGI Session
« Reply #2 on: August 01, 2024, 05:45:09 pm »
Hello, I have 2 actions Login and Check, the first one sets session variables and the second return their values, in my web project for testing i'm requesting Login first and then Check in the same function but Check returns that the session variable value is empty.

In my old project i never had to send back the session ID, if its neccesary i would appreciate some examples on how should be done.

JuviaYamired

  • Newbie
  • Posts: 4
Re: fpweb CGI Session
« Reply #3 on: August 01, 2024, 06:28:55 pm »
Hello, i just found the problem in my old web project i used axios to do the requests, now i changed to use fetch, didn't know that i needed to add a credentials line.
I assume this send the session id back to the CGI. Thanks for the help.

 

TinyPortal © 2005-2018