Á¦·Îº¸µå¿¡¼ ¼·Î´Ù¸¥ µµ¸ÞÀΰ£ ÅëÇշα×Àο¡ ´ëÇÑ ±â¹ý¼³¸íÀÔ´Ï´Ù. ¼·Î´Ù¸¥ µµ¸ÞÀΰ£ ¾î¶»°ÔÇϸé, ÇÑ°÷¿¡¼ ·Î±×ÀÎÇÑ Á¤º¸°¡ ´Ù¸¥µµ¸ÞÀÎÀ¸·Î À̵¿½Ã °°ÀÌ ¿òÁ÷ÀÌ°Ô ÇÒ °ÍÀΰ¡¿¡ ´ëÇØ ¿À·§µ¿¾È °í½ÉÇØ ¿ÔÁÒ.
±×·¯´ø Áß, ÇÑ°¡Áö ¹æ¹ýÀ» ã¾Æ³Â½À´Ï´Ù.
/bbs/login_check.php ¸¦ Çѹø º¸½ÃÁÒ.
a.com °ú b.com ÀÇ Á¦·Îº¸µå°¡ µ¿½Ã¿¡ µ¿ÀÛÇÏ°Ô ÇÏ´Â ¿¹Á¦ÀÔ´Ï´Ù. ======================== a.com/bbs/login_check.php ³»¿ëÁß¿¡¼
...... ...... session_register("zb_logged_ip"); session_register("zb_last_connect_check");
echo" <SCRIPT LANGUAGE="JavaScript"> <!-- function login_process() { form.submit(); } //--> </SCRIPT> </HEAD> <BODY onload="login_process()"> <form name=form method=post action="http://b.com/bbs/login_check.php" target=iframe> <input type=hidden name=user_id value="$user_id"> <input type=hidden name=password value="$password"> </form> <iframe src='about:blank' name=iframe width=0 height=0></iframe> ";
// ·Î±×ÀÎ ÈÄ ÆäÀÌÁö À̵¿ $s_url=urldecode($s_url); ..... .....
=========================
ÇٽɻçÇ× <body onload=...>¸¦ ÅëÇؼ ´Ù¸¥ b.comÀÇ Á¦·Îº¸µå·Î±×ÀÎÁ¤º¸ user_id , password¸¦ form method=post·Î ¹Ù·Î ³¯¸®´Â °Ç ÀÌÇØµÇ½Ç °Ì´Ï´Ù.
±×·¯³ª ÀÌ·¸°Ô µÇ¸é, ·Î±×ÀÎÈÄ¿¡ µý b.comÀÌ ³ª¿À°Ô µÇÁÒ.
±×·¡¼ Æí¹ýÀ» »ç¿ëÇϴµ¥, <iframe name=iframe....> Áï, width=0 height=0 ÀÎ ¼û°ÜÁø iframeÀ» ¸¸µçÈÄ¿¡ <form ....target=iframe> Áï, form À» ´øÁú¶§ Ÿ°ÙÀ» iframeÂÊÀ¸·Î ´øÁý´Ï´Ù. ±×·¯¸é ȸ鿡¼´Â ¼û°ÜÁø iframe¿¡¼ b.comÀÌ ·Î±×ÀεǰÚÁÒ. ^^
Áß¿ä»çÇ×
login_check.php Á¦ÀÏÇÏ´Ü¿¡ ¼öÁ¤ÇØ¾ß µÇ´Â ºÎºÐÀÌ ÀÖ½À´Ï´Ù.
======================================================== ....... ....... $s_url=urldecode($s_url); if(eregi("reg_domain",$s_url)){ movepage('/'); } if(eregi("renew",$s_url)){ movepage('/'); } if(eregi("transfer",$s_url)){ movepage('/'); } if(!$s_url&&$id) $s_url="zboard.php?id=$id"; if($s_url) movepage($s_url); elseif($id) movepage("zboard.php?id=$id&page=$page&page_num=$page_num&select_arrange=$select_arrange&desc=$des&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&category=$category&no=$no"); elseif($group[join_return_url]) movepage($group[join_return_url]); elseif($referer) movepage($referer); else movepage('/'); -------------------(À̺κÐ)
// ȸ¿ø·Î±×ÀÎÀÌ ½ÇÆÐÇÏ¿´À» °æ¿ì ¿¡·¯ Ç¥½Ã } else { head(); Error("·Î±×ÀÎÀ» ½ÇÆÐÇÏ¿´½À´Ï´Ù"); foot(); }
@mysql_close($connect); ?>
=============================================
À§¿¡ º¸½Ã¸é, else moviepage('/'); ·Î ¼öÁ¤µÇ¾ú½À´Ï´Ù. ¿ø·¡´Â history.go(-2); ¿´ÁÒ. ¸¸ÀÏ ¼¼¼Ç¿¡¼ ¹éÀ» ÇÏ°ÔµÇ¸é ¼¼¼ÇÀÌ ³¯¶ó°¡¹ö¸³´Ï´Ù. °á±¹, Çغ¸½Ã¸é ·Î±×Àεɶ§ ·Î±×ÀÎ¾ÈµÈ °Íó·³ µÎȸé¹éÀ» ÇÏ°ÔµÇÁÒ.
±×·¡¼ °Á¦·Î ¸ÞÀÎÆäÀÌÁö·Î À̵¿½ÃÅ°´Â °Ì´Ï´Ù.
ÀÌ·¸°Ô ÇϽøé, SSO¸¦ »ç¿ëÇÏÁö ¾Ê´õ¶óµµ °£´ÜÈ÷ ÅëÇշα×Àα¸ÇöÀÌ °¡´ÉÇÒ°Ì´Ï´Ù.
^^ | |