[英]How to logout to the same URL from where it has been login in joomla
I am logging in from one site and going into the second site. 我正在从一个站点登录并进入第二个站点。 when i logout from the second site how do i return back to the same first site from where i have logged into the second site.
当我从第二个站点注销时,如何从登录第二个站点的位置返回到相同的第一个站点。 can any one help me in this....
谁能帮我这个忙...
I am trying to get the $sername=$_SERVER['REMOTE_live_site']; 我正在尝试获取$ sername = $ _ SERVER ['REMOTE_live_site']; remote live site ie first site live site value at the place whwre the logout button is used.
远程实时站点,即使用注销按钮的位置的第一个站点实时站点值。 but there i am not bale to get the first site live_site value.. how can i do this...
但在那里我没有得到第一个站点live_site价值的包..我该怎么做...
Just set the return url in your form as a hidden varibale. 只需将表单中的返回URL设置为隐藏的变量即可。
like below. 像下面
<input type="hidden" name="return" value="<?php echo base64_encode('full logout url');?>" />
Hope its works.. 希望它的作品..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.