<legend id='lDlFS'><style id='lDlFS'><dir id='lDlFS'><q id='lDlFS'></q></dir></style></legend>
      <i id='lDlFS'><tr id='lDlFS'><dt id='lDlFS'><q id='lDlFS'><span id='lDlFS'><b id='lDlFS'><form id='lDlFS'><ins id='lDlFS'></ins><ul id='lDlFS'></ul><sub id='lDlFS'></sub></form><legend id='lDlFS'></legend><bdo id='lDlFS'><pre id='lDlFS'><center id='lDlFS'></center></pre></bdo></b><th id='lDlFS'></th></span></q></dt></tr></i><div id='lDlFS'><tfoot id='lDlFS'></tfoot><dl id='lDlFS'><fieldset id='lDlFS'></fieldset></dl></div>
      <tfoot id='lDlFS'></tfoot>
        <bdo id='lDlFS'></bdo><ul id='lDlFS'></ul>

      1. <small id='lDlFS'></small><noframes id='lDlFS'>

        如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站

        How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)

            <tfoot id='zfldW'></tfoot>
            <i id='zfldW'><tr id='zfldW'><dt id='zfldW'><q id='zfldW'><span id='zfldW'><b id='zfldW'><form id='zfldW'><ins id='zfldW'></ins><ul id='zfldW'></ul><sub id='zfldW'></sub></form><legend id='zfldW'></legend><bdo id='zfldW'><pre id='zfldW'><center id='zfldW'></center></pre></bdo></b><th id='zfldW'></th></span></q></dt></tr></i><div id='zfldW'><tfoot id='zfldW'></tfoot><dl id='zfldW'><fieldset id='zfldW'></fieldset></dl></div>

                <tbody id='zfldW'></tbody>
              <legend id='zfldW'><style id='zfldW'><dir id='zfldW'><q id='zfldW'></q></dir></style></legend>

              • <small id='zfldW'></small><noframes id='zfldW'>

                  <bdo id='zfldW'></bdo><ul id='zfldW'></ul>
                  本文介绍了如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个 Joomla 站点和另一个基于 ASP.NET MVC 的 Web 应用程序.我希望在登录 Joomla 网站后自动登录另一个应用程序.

                  I have one Joomla site and another web app which is ASP.NET MVC based. I am wishing to do auto login to another app after login to Joomla website.

                  例如,是否有可能在成功登录 Joomla 网站后,自动向这个基于 ASP 的应用程序发出新请求,并在查询字符串中嵌入用户 ID 和密码(当然是加密的).那么这个 ASP 应用程序将获取该信息并解密密码并执行自动登录?

                  For example is it possible that after a successful login in Joomla website, automatically issue a new request to this ASP based app with User ID and password ( encrypted of course ) embedded in query string. Then this ASP application would take that information and decrypt the password and perform auto login?

                  这是如何使用网络服务将 Joomla 登录会话从一个网站共享到另一个网站?一个 Joomla 网站的示例与另一个 Joomla 网站.

                  Here's How to use web services to share Joomla login session from one website to another? a example for one Joomla site with another Joomla site.

                  我希望看到解释解决方案的代码示例.

                  I hope to see code example for explain solution.

                  推荐答案

                  我对 ASP .NET MVC 不熟悉,但您可以参考 为 Joomla 创建插件.它可以是一个非常简单的用户插件,其中您将可以访问许多事件,特别是 OnUserLoginOnUserAfterLogin.您在这两个事件中放置的代码是您使用 CURL 或任何其他技术来发布您的 ASP 请求的地方.

                  I'm not familiar with ASP .NET MVC, but you can intercept the Joomla login event by referring to Creating a Plugin for Joomla. It can be a very simple User Plugin, with which you will have access to many events, particularly OnUserLogin and OnUserAfterLogin. The code you put in either of those two events is where you'd use CURL, or whatever other technology, to POST your ASP request.

                  非常基本的代码结构:

                  <?php 
                  defined('_JEXEC') or die; 
                  class Plgtest extends JPlugin {   
                      public function onUserLogin($user, $options = array()) {
                          // The user has now logged into Joomla - all user info is available in variable $user
                          // Do some PHP stuff here to "issue a new request to this ASP based app"
                          // Example PHP code for ASP login at https://stackoverflow.com/questions/25539787/how-to-post-asp-net-login-form-using-php-curl
                      } 
                  } 
                  ?>
                  

                  参见这个问题用于从 PHP 登录到 ASP 的 PHP 代码.

                  See this question for the PHP code to login to ASP from PHP.

                  这篇关于如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    <bdo id='lUJus'></bdo><ul id='lUJus'></ul>

                        <tbody id='lUJus'></tbody>

                      • <tfoot id='lUJus'></tfoot>
                        1. <i id='lUJus'><tr id='lUJus'><dt id='lUJus'><q id='lUJus'><span id='lUJus'><b id='lUJus'><form id='lUJus'><ins id='lUJus'></ins><ul id='lUJus'></ul><sub id='lUJus'></sub></form><legend id='lUJus'></legend><bdo id='lUJus'><pre id='lUJus'><center id='lUJus'></center></pre></bdo></b><th id='lUJus'></th></span></q></dt></tr></i><div id='lUJus'><tfoot id='lUJus'></tfoot><dl id='lUJus'><fieldset id='lUJus'></fieldset></dl></div>
                          <legend id='lUJus'><style id='lUJus'><dir id='lUJus'><q id='lUJus'></q></dir></style></legend>

                          <small id='lUJus'></small><noframes id='lUJus'>