Passing a session variable, userid or other unique ID's to a page used in an iFrame.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/4/2014 9:14:50 PM
Gravatar
Total Posts 9

Passing a session variable, userid or other unique ID's to a page used in an iFrame.

I am using an iFrame to bring in ASP pages to the site.
In MP, I have selected a specific role to see the content.
This work just fine. My problem is those pages are now open to the public.
If they guess or someone finds out the directory, they are in, they have full access. I want to block access, except for those authorized to view it.
 

Is there a way to capture the unique userid, login, unique role or anything else and pass that to another page, ASP page, in the same domain?

Thanks in advance





 

4/7/2014 2:36:08 PM
Gravatar
Total Posts 18439

Re: Passing a session variable, userid or other unique ID's to a page used in an iFrame.

Hi,

I can't offer any advice specifically about sharing things between asp.net and classic asp but I think doing some google research you may find a way.

However I know that you can protect static files in a given folder beneath your mojoPortal site by adding a web.config file to the folder like this:


<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
      <authorization>
        <allow roles="Admins" />
        <deny users="*"/>
      </authorization>
    </system.web>
</configuration>
 

which would allow only users in the Admins role to access the files. The same solution "might" work for protecting .asp files in a folder, I'm not sure though.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.