How do you get $_SESSION vars in jquery mobile

Hello everyone. I'm creating a mobile application with jquery. I have created.a connection format that uses getJSON() to validate the connection with photos. If successful the login.html redirects to the loggedin.html.

I kept the name of user in. A session in the photo. How can I get the user name after the user is logged?

RapsFan wrote:

Hello everyone. I'm creating a mobile application with jquery. I have created.a connection format that uses getJSON() to validate the connection with photos. If successful the login.html redirects to the loggedin.html.

I kept the name of user in. A session in the photo. How can I get the user name after the user is logged?

If you redirect to a static page, I think that it is not possible to obtain information of $_SESSION in the client. You can use an XHR request to a script on your server that responds with some information of JSON based containing information about _SESSION $ (username) you want to get.

If you redirect to a dynamic page, you can write the information of $_SESSION directly to the header of dynamic content page using something like this:


Maybe what you are looking for.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • new terminal terminal to access command prompts

    Simple question: I'm running Apache caldav on Maverick for manage my calendars small office. When I start the server, the console remains with the caldav server process (username and $ is no longer happens). What is the command key to exit the server

  • How to display the parameters of the control units

    Hello I have a simple request, associated with display units in controls. The procedure is a right-click on the control > select the display format > advanced editing mode. Because a field called string format, I give here the units related to the pa

  • C6280: Select Auto duplex printing

    Hello:I use an HP running Windows Vista 32 bit Home Premium laptop.I had already completely uninstalled my HP Photosmart C6280 all-in-one printer.Today, I reinstalled it using the CD-ROM supplied with the printer.When I went to print a MS Word docume

  • Upgrade. Win 7 Pro to win 10 hangs at 62...

    Please Heeelp! I am upgrading to Windows 7 Pro to win 10, but my machine (like many others it seems), is stuck at 62% (transfer of files, settings, and programs). First of all, I can safely return to my Win 7 Pro installation? Secondly, how can I get

  • ISS my Genuine windows

    Diagnostic report (1.9.0027.0): ----------------------------------------- Validation of Windows data--> Validation code: 0 Code of Validation caching online: 0x0 Windows product key: *-* - KHGCQ - 7DDY6-TF7CD Windows product key hash: YTcSHmTpekJgEHs