Hello.
Me again, need help on how to use sessions, cookies with pure CGI program.
So, I have created a Custom CGI program, added some code, and I have two web pages
the Login page and the content page.
- index.cgi
- login.html
- content.html.
When a web browser try to get access to the webserver, by default the index.cgi will return login.html to do authentication.
once the user authenticated, the index.cgi will serve content.html.
the user from browser side do not know that there is 'login.html, content.html' since they are served by index.cgi.
So, Is there any way to code this with session, cookies to protect access if the user is not authenticated.
attached code I used, but frankely, it do not work.
Exemples on fcl-web folder do not help.
Thank you.