SessionID
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngtr' list.


turkari
aspx dosyalarinda <% =Session.SessionID %> ifadesi farkli degerler getiriyor
sayfayi refresh ettigimde. Neden acaba ?
Klasik asp'de böyle bir sorun yoktu ..

ASP.NET ile bu session olayini nasil kullaniyoruz bilen varsa aciklarmi
lütfen ?

_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com

Reply to this message...
 
    
Levent Camlibel

Session timeout unu bir incele, IIS de normal de timeout 20 dk fakat, bir
terslik olup, timeout kurulmamis olabilir.

levent

[Original message clipped]

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

Reply to this message...
 
    
turkari
session.timeout 20dk.
baktim bir terslik yok.

devam ediyorum , sorunu çözdüm :)
son defa bakayim derken !!
açikliyorum baylar bayanlar ,
anlasilan bu konuda bir hatayla henüz kimse karsilasmadi ...
c# ile ID isimli bir degisken açip Session içinde :
<% Session["ID"]=Session.SessionID; %>
bunu diger bir sayfada kontrol ederken tiplerinin ayni olmasini saglamaliyiz
!
Dikkat : eger tipleri stringe cevirmek icin ToString() metodunu
kullanmasaydim birbirine esit çikmayacakti... Yaa olayi nasi çözdüm ama :p

if(Session["ID"].ToString() == Session.SessionID.ToString() )
Response.Write("esit" );
else
Response.Write("esit degil");

tanerari

----- Original Message -----
From: "Levent Camlibel" <Click here to reveal e-mail address>
To: "aspngtr" <Click here to reveal e-mail address>
Sent: Sunday, January 06, 2002 1:11 PM
Subject: [aspngtr] Re: SessionID

[Original message clipped]

_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com