%appData% and Citrix - Is roaming data persisted during logoff?
Asked Answered
F

2

6

We have a program that need to be able to run on Local machines, Terminal Servers and Citrix.

While the program is running it need to create some data that are user-specific (Logs), so for that reason I save this in AppData (C:\Users\\AppData\Roaming)

Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

I'm pretty sure this works local and TS but what about Citrix. I heard some information that data created in AppData during a session are removed during logoff, but can this really be true. I was under the impression that

Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

was the volitile folder (C:\Users\\AppData\Local) while data added to the Roaming folder was persisted from session to session.

Finny answered 6/12, 2010 at 13:46 Comment(1)
This is not Exports Exchange.Annunciation
M
5

Citrix farms are typically designed so that each server is stateless, meaning that every trace of a user session is deleted from the server after that session logged off. Since users obviously hate setting up their environment time and again, often Roaming Profiles are used to copy the user profile from a file server to the Citrix XenApp server during logon and changed files back during logoff before the local copy of the profile is deleted.

In a roaming profile, %LocalAppData% is by default excluded, but %AppData% is not. Storing your application's settings there is safe - it will persist between sessions.

Mutualism answered 6/12, 2010 at 21:55 Comment(2)
Thanks, that was also my conclusion so far but thank you for the confirmation.Finny
Would you mind marking the answer as correct by clicking on the check mark at the left of the best answer?Mutualism
K
0

It depends on whether roaming profiles and delete of profiles on logoff has been setup!

Kareenkarel answered 6/12, 2010 at 13:50 Comment(2)
Do you know if this is default on or off in a Citrix installation?Finny
Off, an admin will need to configure in a group policyKareenkarel

© 2022 - 2024 — McMap. All rights reserved.