Exw dyo asp scripts. to a1.asp kai to a2.asp.
Sto global.asa exw mia session metavlith dhlwmenh ws exis : Session("SES_TRY") = 0 .
Sto prwto asp a1.asp allazei thn timh se 1 kai kanei redirect sto a2.asp to opoio aplws elegxei thn timh kai
emfanizei ena aplo minima. Omws sto deftero (a2.asp) h timh den exei allaksei (paramenei 0):
Global.asa:
--------------------
a1.asp:
<%
Session("SES_TRY") = 1
Response.redirect “a2.asp”
%>
-------------------
a.asp:
<%
Response.write “You have tried ” & Session("SES_TRY") & “ times
”
''' // eDW EMFANIZEI : “You have tried 0 times "
%>
Exw vrei thn aitia alla oxi kai thn lysh. Sto deftero asp (a2.asp) dhmiourgeitai neo Session me allo fisika ID. Me synepeia na adeiazoun oi metavlites.
Kserei kaneis yiati shmvainei afto?
...δεν δικαιολογείται !
Βεβαιώσου ότι στα properties του virtual directory > application configuration > app options
ότι το session state ειναι enabled
Επίσης βεβαιώσου πως το global.asa είναι στο root του web site σου και όχι σε κάποιο φάκελο.
Ευχαριστώ.
Το global.asa file einai sto root folder alla den exw dhmiourghsei Virtual directory. Mhpos exw sthsei entelos lathos to web page mou ston IIS 5.0;
Problem solved.
Telika to provlima htan oti ta Sessions kai ta Cookies den leirourgoun swsta otan to WINS name toy server xrhsimopoieitai anti tou IP. Etsi allaksa to http://MyLocalServer:80/ se Ip address kai leitourghse apsoga.
tip: Η χαρά δεν βρίσκεται στα πράγματα , βρίσκεται μέσα μας . * F5 για νέο tip