Jump to content
  • 0

Double Login Session Bug.


Question

10 answers to this question

Recommended Posts

  • 0
Posted

Thanks guys, altough I dont know how to apply that bugg i must find some1 to check it . 

I will post feedback soon

/THanks :D

  • 0
Posted

After reconnect to server character cant be load... Bad fix... Please give someone normal fix of this bug..

  • 0
Posted (edited)

SweeTs with this fix, after one login in your char ,and logout you cant login again in your char... Something bad in this code..  I cant find good fix... Im added this... Its good with login, logout... But bugg is still working. Maybe someone know where in there can be mistake ? :(

    public boolean addGameServerLogin(String account, L2GameClient client)  {
        
           L2GameClient savedClient = _accountsInGameServer.get(account);
          
                   if (savedClient != null) {
                   if (savedClient.isDetached()) {
                   if (Config.DEBUG)
                   _log.info("Old Client was disconnected: Offline or OfflineMode --> Login Again");
                   ((FastMap<String, L2GameClient>) _accountsInGameServer).put(account, client);
                   return true;
                   }
                   if (Config.DEBUG)
                   _log.info("Old Client was online --> Close Old Client Connection");
                   savedClient.closeNow();
                   _accountsInGameServer.remove(account);
                   return false;
                   }
                   if (Config.DEBUG)
                   _log.info("Client was not online --> New Client Connection");
                   ((FastMap<String, L2GameClient>) _accountsInGameServer).put(account, client);
                   return true;
                   }
}





    L2GameClient savedClient = _accountsInGameServer.get(account);

    if (savedClient != null) {
        if (savedClient.isDetached()) {
            _log.info("Old Client was disconnected: Offline or OfflineMode --> Login Again [Account: " + account + "]");
            ((FastMap<String, L2GameClient>) _accountsInGameServer).put(
                    account, client);
            return true;
        } else {
            _log.info("Old Client was online --> Close Old Client Connection [Account: " + account + "]");
            savedClient.closeNow();
            _accountsInGameServer.remove(account);
            return false;
        }
    } else {
        _log.info("Client was not online --> New Client Connection [Account: " + account + "]");
        ((FastMap<String, L2GameClient>) _accountsInGameServer).put(
                account, client);
        return true;
    }





IN THIS CODE "ELSE" anything mean or no ? Becouse with else i get yellow code... ???

Edited by koksas
  • 0
Posted (edited)

authlogin founded in l2jserver

// avoid potential exploits
if (client.getAccountName() == null)
{
 // Preventing duplicate login in case client login server socket was disconnected or this packet was not sent yet
if (LoginServerThread.getInstance().addGameServerLogin(_loginName, client))
{
 client.setAccountName(_loginName);
 LoginServerThread.getInstance().addWaitingClientAndSendRequest(_loginName, client, key);
}
else
{
 client.close((L2GameServerPacket) null);
 }

+    public boolean addGameServerLogin(String account, L2GameClient client) {
+
+        L2GameClient savedClient = _accountsInGameServer.get(account);
+
+        if (savedClient != null) {
+            if (savedClient.isDetached()) {
+                LOGGER.debug("Old Client was disconnected: Offline or OfflineMode --> Login Again [Account: " + account + "]");
+                ((FastMap<String, L2GameClient>) _accountsInGameServer).put(
+                        account, client);
+                return true;
+            } else {
+                LOGGER.debug("Old Client was online --> Close Old Client Connection [Account: " + account + "]");
+                savedClient.closeNow();
+                _accountsInGameServer.remove(account);
+                return false;
+            }
+        } else {
+            LOGGER.debug("Client was not online --> New Client Connection [Account: " + account + "]");
+            ((FastMap<String, L2GameClient>) _accountsInGameServer).put(
+                    account, client);
+            return true;
+        }
+    }

well i found this in the gta version of frozen.. i dont have idea if this works

 

 

also this 

public boolean addGameServerLogin(String account, L2GameClient client) 
 { 
 return _accountsInGameServer.putIfAbsent(account, client) == null; 
}
Edited by te0x
Guest
This topic is now closed to further replies.


  • Posts

    • 新品上线! 快来抢购最优质的 GMAIL 账号,享受 超低价格,注册年份范围从 2005–2022! 老版 Gmail.com 账号(已启用 2FA 双重验证) | 使用 MIX IP 注册 | 年份:2005 至 2022(可自行选择) | 账号可能包含邮件 | 格式:email:password:submail | 无需短信验证 | 已启用 IMAP | 附带 Submail | 价格起步:$0.9 我们还提供 Outlook、Firstmail、Rambler、Onet、Gazeta.pl、GMX、Yahoo、Proton、Web.de 等邮箱账号。 立即通过我们的网站或机器人购买! 活跃链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 方便快捷地访问商店。 其他服务: Telegram Stars 购买机器人:进入 – 快速又实惠地购买 Telegram Stars。 SMM 面板:进入 – 推广您的社交媒体账号。 我们为您呈现当前 促销活动 与 特别优惠,适用于购买我们的商品和服务: 1. 优惠码 OCTOBER2025(8% 折扣)适用于九月在我们的商店(网站、机器人)购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获取 $1 商店余额或 10–20% 折扣 —— 注册后在我们网站的论坛贴中按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(Support)中创建名为 “Get Trial Bonus” 的支持工单。 4. 每周在我们的 Telegram 频道和 Stars 购买机器人中举行 Telegram Stars 抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • 新品上线! 快来抢购最优质的 GMAIL 账号,享受 超低价格,注册年份范围从 2005–2022! 老版 Gmail.com 账号(已启用 2FA 双重验证) | 使用 MIX IP 注册 | 年份:2005 至 2022(可自行选择) | 账号可能包含邮件 | 格式:email:password:submail | 无需短信验证 | 已启用 IMAP | 附带 Submail | 价格起步:$0.9 我们还提供 Outlook、Firstmail、Rambler、Onet、Gazeta.pl、GMX、Yahoo、Proton、Web.de 等邮箱账号。 立即通过我们的网站或机器人购买! 活跃链接: 数字商品商店(网站):进入 商店 Telegram 机器人:进入 – 通过 Telegram 方便快捷地访问商店。 其他服务: Telegram Stars 购买机器人:进入 – 快速又实惠地购买 Telegram Stars。 SMM 面板:进入 – 推广您的社交媒体账号。 我们为您呈现当前 促销活动 与 特别优惠,适用于购买我们的商品和服务: 1. 优惠码 OCTOBER2025(8% 折扣)适用于九月在我们的商店(网站、机器人)购物!首次购买还可使用优惠码 SOCNET(15% 折扣)。 2. 获取 $1 商店余额或 10–20% 折扣 —— 注册后在我们网站的论坛贴中按照以下格式留言:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板可获得 $1 奖励 —— 只需在网站(Support)中创建名为 “Get Trial Bonus” 的支持工单。 4. 每周在我们的 Telegram 频道和 Stars 购买机器人中举行 Telegram Stars 抽奖活动! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器:https://discord.gg/y9AStFFsrh 联系方式与支持: ➡ Telegram:https://t.me/socnet_support ➡ WhatsApp:https://wa.me/79051904467 ➡ Discord:socnet_support ➡ ✉ 邮箱:solomonbog@socnet.store
    • New Products! Hurry up and grab the best GMAIL accounts at low prices with creation years from 2005–2022! Old Gmail.com accounts (with 2FA enabled) | Registered with MIX IP | Age: from 2005 to 2022 (choose the year you prefer) | Accounts may contain messages | Format: email:password:submail | No SMS verification required | IMAP enabled | Submail included | Price from: $0.9 We also offer email accounts for Outlook, Firstmail, Rambler, Onet, Gazeta.pl, GMX, Yahoo, Proton, and Web.de. Buy now in our store via website or bot! Active Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store directly through Telegram messenger. Other Services: Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code: SOCNET (15% discount). 2. Get $1 to your store balance or a 10–20% discount — simply post your username after registration on our website using the following format "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • New Products! Hurry up and grab the best GMAIL accounts at low prices with creation years from 2005–2022! Old Gmail.com accounts (with 2FA enabled) | Registered with MIX IP | Age: from 2005 to 2022 (choose the year you prefer) | Accounts may contain messages | Format: email:password:submail | No SMS verification required | IMAP enabled | Submail included | Price from: $0.9 We also offer email accounts for Outlook, Firstmail, Rambler, Onet, Gazeta.pl, GMX, Yahoo, Proton, and Web.de. Buy now in our store via website or bot! Active Links: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store directly through Telegram messenger. Other Services: Telegram Bot for purchasing Telegram Stars: Go – fast and profitable way to buy Telegram Stars. SMM Panel: Go – promote your social media accounts. We would like to present you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, Bot) during September! You can also use the first-time promo code: SOCNET (15% discount). 2. Get $1 to your store balance or a 10–20% discount — simply post your username after registration on our website using the following format "SEND ME BONUS, MY USERNAME IS..." – post it in our forum thread! 3. Get $1 for your first SMM Panel trial — just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 🌟 NEW LINEAGEII VALEBORN HIGH FIVE x10 SERVER IS COMING! 🌟   🔥 Start Date: October 29th — ⏰ 16:00 GMT ⚔️ Rates: 10x 🎁 Bonuses for All Players! 🎉 New Exclusive Events! 💰 All for Adena! 🏪 Active Market! ⬇️ Download Available Now!   🏰 Welcome to Lineage2 ValeBorn – High Five x10 Return to the classic High Five era, fully restored and enhanced for the ultimate Lineage2 experience!   💫 Enjoy tons of new events and powerful commands that will make your adventure smoother and more exciting than ever. ⚖️ All classes and skills have been carefully rebalanced, bringing back fair and intense PvP battles!   👑 Face the mighty Grand Bosses – Tauti and Lindvior, and seize their exclusive legendary jewels. ✨ Discover unique features unseen on any other Lineage2 server and dive deep into an epic medieval adventure!   💸 ACTIVE MARKET SYSTEM Do you miss the old days when farming Adena meant everything? On ValeBorn, everything revolves around Adena! 🪙 You can buy nearly everything using Adena through our special Gold Bar system — just like the golden age of Lineage2!   🎁 BONUS START EVENT Dear warriors, adventurers, and heroes — We’ve prepared valuable starting bonuses for all new players! Join us from day one and claim your exclusive rewards.   ⚔️ Lineage2 ValeBorn – High Five x10 🌍 The true return to the roots. The legend reborn.   👉 Download & Join Now!
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock