[Asp]Session Lost
Testando un’applicativo scritto in asp, su piattaforma Windows 2000 Server con iis5 come web server, mi sono imbattuto nel seguente problema :
digitando http://localhost/sitoweb/pagina.asp il sito funzionava perfettamente
digitando http://nome_server/sitoweb/pagina.asp il sito non funzionava (non riusciva a fare l’autenticazione).
Controllando il codice e facendo alcuni test, ho appurato che nel secondo caso non funzionavano le sessioni, utilizzate dal codice per autenticare, pertanto venivo rediretto su una pagina di login fallito.
Provando a smanettare con le varie impostazioni di timeout delle sessioni, provando con pagine semplici di test l’errore persisteva.
Infine ho trovato (RFC2821):
[cut]
To promote interoperability and consistent with long-standing
guidance about conservative use of the DNS in naming and applications
(e.g., see section 2.3.1 of the base DNS document, RFC1035 [22]),
characters outside the set of alphas, digits, and hyphen MUST NOT
appear in domain name labels for SMTP clients or servers. In
particular, the underscore character is not permitted. SMTP servers
that receive a command in which invalid character codes have been
employed, and for which there are no other reasons for rejection,
MUST reject that command with a 501 response.
[cut]
Cambiando il nome del server da Nome_server a Nome-server, tutto รจ tornato a funzionare.




