Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2005

Tip: Looking for answers? Try searching our database.

How does SmartClient retain session?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brett - 31 Dec 2004 17:05 GMT
How does a SmartClient application return its Internet connection?  Say I
have an application that is used strictly through the web browser.  I retain
session via cookies.  I want more client side functionality and will do this
via SmartClient.  How does the smart client retain its session?

As a side point, most people won't download a small application just to use
a website.  I'm assuming SmartClient is for a target audience and not the
general public.  Please comment?

Thanks,
Brett
Chris Taylor - 01 Jan 2005 16:19 GMT
Hi,

If I understand your question correctly, this is my view on the topic,
please note my closing paragraph.

SmartClients do not generally need to maintain session state on the server.
However if you absolutely need that functionality one option would be to use
a WebService to communicate back to the server from the smart client and
have your WebService maintain session state, by default WebServices do not
maintain session state, but this can be enabled with the following attribute
on the web method:

[System.Web.Services.WebMethod(EnableSession=true)]

Obviously this would require that the smart client runs in a more trusted
environment and would thus require configuration of client workstations. I
normally address this with a simple msi which is rolled out via active
directory.

On the other hand if all you need is to persist information for the client
then you could use isolated storage

Personally I have never needed to go the route of server side sessions for a
smartclient application and would probably try to find an alternative
design.

Hope this helps

Signature

Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor

> How does a SmartClient application return its Internet connection?  Say I
> have an application that is used strictly through the web browser.  I retain
[quoted text clipped - 7 lines]
> Thanks,
> Brett
Brett - 01 Jan 2005 20:35 GMT
> On the other hand if all you need is to persist information for the client
> then you could use isolated storage

What do you mean by isolated storage?

> Personally I have never needed to go the route of server side sessions for
> a
> smartclient application and would probably try to find an alternative
> design.

Please elaborate.

> Hope this helps
>
[quoted text clipped - 12 lines]
>> Thanks,
>> Brett
Chris Taylor - 01 Jan 2005 23:11 GMT
Hi,

To learn more about isolated storage take a look at the class
IsolatedStorage in the MSDN help. In short isolated storage is a secure way
of providing a smart client access to a client hard disk without the smart
client having access to all other data on the disk, there by isolating the
access the smart client application has to the physical disk, this prevents
the smart client from performing unauthorized disk activities on the client
workstation. Additionally the smart client is allocated a disk quota thereby
preventing a malicious smart client from hogging the disk space.

To elaborate on an alternative design that would be relevant to your
requirements I would have to understand your requirements. But as a few
options you can maintain state using a server side database or as I have
mentioned using isolated storage.

Hope this helps

Signature

Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor

>
> > On the other hand if all you need is to persist information for the client
[quoted text clipped - 25 lines]
> >> Thanks,
> >> Brett
Brett - 02 Jan 2005 01:14 GMT
How is isolated storage different from a cookie?  It still must address
stateless: cookies, URL parameters, serverside database.

Thanks,
Brett

> Hi,
>
[quoted text clipped - 53 lines]
>> >> Thanks,
>> >> Brett

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.