Pass session variable from wordpress or joomla?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Hi,

I need suggestion if it is possible to read session variable from wordpress or joomla, to check if a user is logged and then display wisej in a iframe.

or I must read database?

thanks

Cristian

  • You must to post comments
0
0

Luca, Frank

Thanks for your good answers 🙂

regards

Cristian

  • You must to post comments
0
0

Hi Cristian,

I don’t think it’s possible to access a .NET instance from php. There is a php com bridge, but it may not be the easiest way.

Another problem is to identify the session from php. Wisej stores the session id in a cookie named “Wisej.SessionId” but if it’s in an iframe then the cookie is only visible to the iframe. Maybe the parent page can read it, unless the origin is different. Wisej can also store the session in the URL, when using cookieless: true.

The best way is probably to save shared data on a local file or database using an id (user id?) that is understood by both environments.

HTH

Best,

Luca

  • Luca (ITG)
    Or the shared cookie solution pointed out by Frank would also work. It depends on whether the parent page and the iframe can share cookies.
  • You must to post comments
0
0

Hi Cristian,

I think your best way to achieve that with WP is to read/share some cookies between WP (or Joomla) and your Wisej app
to verify that a user is authenticated. If you browse around searching for WP | Joomla with ASP.NET (which should roughly be the same scenario)
you can find a couple of pointers, too.

Hope that helps.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json