简体   繁体   English

PHP Session与Adobe Air应用程序?

[英]PHP Session with Adobe Air application?

I don't have a lot of experience with either PHP or Adobe AIR. 我没有使用PHP或Adobe AIR的丰富经验。 I'm just researching at the moment. 我目前正在研究。 I am considering creating some kind of internal AIR app. 我正在考虑创建某种内部AIR应用程序。 It would basically be a web chat interface that can be minimized to the tray, with the ability to notify users of new messages, etc. In other words, a pretty basic web chat application. 基本上,它将是一个Web聊天界面,可以最小化到托盘上,并能够向用户通知新消息等。换句话说,这是一个非常基本的Web聊天应用程序。 This would be my first AIR app, so it's mostly for me to learn. 这将是我的第一个AIR应用程序,因此这主要是我学习的内容。

I'm wondering how you would maintain some kind of session state in the AIR application (to display users online, in chats, etc.) Does the AIR app work the same as a visiting a web page in a browser? 我想知道您将如何在AIR应用程序中维护某种会话状态(以在线显示用户,在聊天中等)。AIR应用程序的工作原理是否与在浏览器中访问网页相同? I can't seem to find any information on the topic. 我似乎找不到有关该主题的任何信息。

You may find it easier to pass the session ID as a url parameter. 您可能会发现更容易将会话ID作为url参数传递。 See http://www.php.net/manual/en/session.idpassing.php For more info on this. 有关更多信息,请参见http://www.php.net/manual/zh/session.idpassing.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM