[英]How to make hyperlinks call same C++ CGI process
So my C++ CGI program generates some html-page with several links. 因此,我的C ++ CGI程序会生成带有多个链接的html页面。 How can I make within the same C++ process that after clicking this links will be displayed some others pages with content depending on what hyperlink was clicked?
如何在相同的C ++流程中使单击此链接后将显示其他页面,这些页面的内容取决于所单击的超链接?
For now I just have variant that there will be other C++ CGI program that will read URL param with getenv, and this param will be different for every link from my first page. 现在,我只是有一个变种,那就是还有其他C ++ CGI程序将使用getenv读取URL参数,并且该参数对于首页中的每个链接都会有所不同。 But I believe there must be a way of doing this with one C++ process.
但是我相信必须有一种方法可以通过一个C ++进程来实现。
You are trying to store session information in the memory of your CGI program. 您正在尝试将会话信息存储在CGI程序的内存中。 CGI protocol doesn't allow this by itself .
CGI协议本身不会允许这样。 You must store session information somewhere else.
您必须将会话信息存储在其他地方。 Your options are:
您的选择是:
Hope that answers your question! 希望这能回答你的问题!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.