• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session lost because iframe

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a page, which has a div block for showing iframe inside the page. They are both in same domain, and written using Velocity Template.

When loading the page, the session is created and with some important session data. After the iframe loaded, the session id is changed to a different value, and the important session data are lost.

Do you know how to keep the same session without being changed by the iframe?

Thank you very much,

Jing

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jingjinglili li wrote:They are both in same domain


But are they in the same web application? Sessions will not be shared across different web apps.
 
jingjinglili li
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, they are same web application. The iframe is used for an image slider show which using a JQery. Why the the slider is put into a iframe because the JQuery version causes conflict to the existing JQery version used by the original page.

Is there a way to keep the session without rewriting by the iframe? or I have to discard the iframe idea, and solve the JQery conflict problem for the web site?

Many thanks,

Jing
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic