Your iPhone should appear in iTunes whenever both devices (iPhone and computer) are connected to the same Wi-Fi, not just for one session.
Check your firewall settings and your security settings. They could be the reason for your issue.
Check your firewall settings and your security settings. They could be the reason for your issue.