我们如何在HTML页面中启动sesion以及如何在使用javasript和ajax时通过HTML页面维护会话? [英] How we can start sesion in HTML page and how can I maintain session througout the HTML pages while working with javasript and ajax?
本文介绍了我们如何在HTML页面中启动sesion以及如何在使用javasript和ajax时通过HTML页面维护会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在html页面中启动sesion以及如何在使用javasript和ajax时通过html页面维护会话?
我有什么尝试过:
我们如何在html页面中启动sesion以及如何在使用javasript和ajax时通过html页面维护会话?
解决方案
HI
1-创建一个sesison
sessionStorage.setItem('key','value');
2-读取会话:
sessionStorage.getItem('key )
how we can start sesion in html page and how can i maintain session througout the html pages while working with javasript and ajax?
What I have tried:
how we can start sesion in html page and how can i maintain session througout the html pages while working with javasript and ajax?
解决方案
HI
1- create a sesison
sessionStorage.setItem('key', 'value');
2- read session:
sessionStorage.getItem('key')
这篇关于我们如何在HTML页面中启动sesion以及如何在使用javasript和ajax时通过HTML页面维护会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文